急急急,问个javascript按钮链接的问题?

来源:百度知道 编辑:UC知道 时间:2024/06/14 16:04:52
急急急,问个javascript按钮链接的问题?

在ie中点添加按钮和菜单按钮都没问题,为什么在火狐中全部失效点下后都不跳转了,

怎么回事啊?

<input type="button" value="添加" onclick="window.location.href('insert.html')">
<input type="button" value="菜单" onclick="window.location.href('../index.html')">

<input type="button" value="添加" onclick="window.location.href='insert.html'">

可能火狐不兼容这个按钮。。

js就是这样,浏览器兼容问题日益突出
对于研究浏览器兼容的课题现在本身已成为一个科类