<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'"/>