1.点击一个按钮,打开一个页面的几种方法:
<input type="button" value="location" onclick="window.location=‘index1.html‘">
<input type="button" value="assign" onclick="location.assign(‘index1.html‘)">
<input type="button" value="open" onclick="window.open(‘index1.html‘)">
<form target="_blank" action="index1.html">
<input type="submit" value="new">
</form>
下面两种是打开一个新的页面。
2.
原文:http://www.cnblogs.com/yanyangbyou/p/3990550.html