2014年1月7日星期二

Button (JSP) how not jump page




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 ------------------------- --------------
Thanks ! Bold is this error -

没有评论:

发表评论