1.页面转向新的页面:
<input type="button" onclick="window.location.href('连接')">
2.需要打开一个新的页面进行转向:
<input type="button" onclick="window.open('连接')">
由于浏览器内核不一样
IE中使用:
<input type="button" name="test" value="test" onClick="location.href='a.html'"/>
firefox中使用:
<a href="b.html"><input type="button" name="test" value="test"/></a>
本文介绍了如何在HTML中使用按钮触发页面跳转,并分别针对IE和Firefox浏览器提供了不同的实现方式。包括直接跳转到新页面及在新窗口中打开链接的方法。
8551

被折叠的 条评论
为什么被折叠?



