Button (JSP) 怎么跳转 不了页面
<input type="button" name="button" value="" onclick="window.location.href('index.jsp')"/>
点了没效果, 求解释!!!!
[解决办法]
<html>
<head>
<title>Test</title>
<script>
function aab() {
alert('turn to aa.html');
window.location.href = './aa.html';
}
</script>
</head>
<body>
<input type="button" name="button" value="aa" onclick="aab()"/>
</body>
</html>
<input type="button" name="button" value="" onclick="window.location.href('index.jsp')"/>改成
<input type="button" name="button" value="" onclick="window.location.href='index.jsp'"/>