这段代码中我想点击注册按钮;让它跳转至注册页面 ;请哪位高手指点一下;

<script language="javascript">
function aa()
{
window.open("注册.html");
}
</script>
</head>
<body background="ppt1747.jpg" >
<div id="aa">
用户名:<input /><br /><br />
密码: <input /><br />
<div id="bb">
<br />
<button>登录</button>
<button onclick="aa()">注册</button>
<font color="#00FF66">忘记密码?</font>
</div>
</div>
</body>

function aa(){
window.location.href = "注册.html";
}
window.location.href 是页面跳转语句

ps 建议使用window.location.href = "注册.html";而不用window.location.href("注册.html");因为前者浏览器兼容性更强追问

我这个事D8啊

追答

Dreamweaver 8?
这个和问题有什么关系?

温馨提示:答案为网友推荐,仅供参考
相似回答