Js page jump the usual way to tidy up
- 2020-03-26 21:28:09
- OfStack
<!-- Script to start -->
<script language="javascript" type="">
function countDown(secs){
tiao.innerText=secs;
if(--secs>0)
setTimeout("countDown("+secs+")",1000);
}
countDown(3);
</script>
<!-- End of the script -->
Push button:
<INPUT name="pclog" type="button" value="GO" onClick="location.href='http://www.ddhbb.com/'">
Link type:
<a href="javascript:history.go(-1)"> Step back </a>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>"> Step back </a>
Direct jump:
<script>window.location.href='http://www.ddhbb.com';</script>
Open a new window:
<a href="javascript:" onClick="window.open('http://www.ddhbb.com/blog/guestbook.asp','','height=500,width=611,scrollbars=yes,status=yes')"> The pudding footprint </a>
JS jump page reference code
The first:
<script language="javascript" type="text/javascript">
window.location.href="login.jsp?backurl="+window.location.href;
</script>
The second:
<script language="javascript">
alert(" return ");
window.history.back(-1);
</script>
The third:
<script language="javascript">
window.navigate("top.jsp");
</script>
Fourth:
<script language="JavaScript">
self.location='top.htm';
</script>
Fifth:
<script language="javascript">
alert(" Illegal access! ");
top.location='xx.jsp';
</script>
= = = = = javascript pops up a selection box to jump to another page = = = = =
<script language="javascript">
<!--
function logout()...{
if (confirm(" Are you sure you want to lose your identity? Yes - select yes, no - Select cancel "))...{
window.location.href="logout.asp?act=logout"
}
}
-->
</script>
= = = = = = javascript prompt box to jump to another page = = = = =
<script language="javascript">
<!--
function logout()...{
alert(" Are you sure you want to lose your identity? ");
window.location.href="logout.asp?act=logout"
}
-->
</script>