point of no effect , seeking to explain ! ! ! !
------ Solution ---------------------------------------- ----
<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>
------ Solution ------------------------------ --------------
<input type="button" name="button" value="" onclick="window.location.href('index.jsp')"/>changed
<input type="button" name="button" value="" onclick="window.location.href='index.jsp'"/>
------ For reference only ----------------------------------- ----
upstairs positive solution ah
------ For reference only ------------------------- --------------

没有评论:
发表评论