由於要作登陸,利用ajax在本界面作驗證,而後跳轉,因此在網上找到了如下內容,均屬轉載javascript
原文連接:http://www.68design.net/Development/JSP/39394-1.htmlhtml
第一種: java
<script language="javascript" type="text/javascript">
window.location.href="login.jsp?backurl=\"+window.location.href;
</script>ajax
第二種: jsp
<script language="javascript">
alert("返回");
window.history.back(-1);
</script>url
第三種: .net
<script language="javascript">
window.navigate("top.jsp");
</script>htm
第四種: ip
<script language="JavaScript">
self.location=’top.htm’;
</script>io
第五種:
<script language="javascript">
alert("非法訪問!");
top.location=’xx.jsp’;
</script>
=====javascript中彈出選擇框跳轉到其餘頁面=====
<script language="javascript">
<!--
function logout()...{
if (confirm("你肯定要註銷身份嗎?是-選擇肯定,否-選擇取消"))...{
window.location.href="logout.asp?act=logout"
}
}
-->
</script>
=====javascript中彈出提示框跳轉到其餘頁面=====
<script language="javascript"> <!-- function logout()...{ alert("你肯定要註銷身份嗎?"); window.location.href="logout.asp?act=logout" } --> </script>