下面两句可以实现脚本控制跳转页面
“javascript:window.location.href=/index.html”
<input type="button" onclick="javascript:window.location.href='regist.html'" value="去注册页面">
<input type="button" onclick="javascript:window.location.href='/index.html'" value="去首页">