链接到某页
<input type="button" name="Submit" value="确定" class="btn" onclick="location.href='filename.html'" />
**返回(等同后退) **
<input name="Submit2" type="button" class="btn" onclick="location.href='javascript:history.go(-1);'" value="返回" />
打开新网页
<input type="button" name="Submit2" value="确定" class="btn" onclick="window.open('filename.html')" />
打开新网页同时指向另一页
<input type="button" name="Submit2" value="确定" class="btn" onclick="window.open('filename.html');location.href='http://hi.baidu.com/harryxue'" />
点击按钮弹出确认alert窗口
<input type="button" name="Submit2" value="确定" class="btn" onClick="if (confirm('是否确认提交?'))location.href= 'filename.html';return false;" >