JS jump page method Daquan
<span id = "tiao"> 3 </span> <a href = "javascript: countdown"> </a> Xiangzi net house; automatically jump after second ... <meta http-equiv = refresh content = 3; urlll = '/search/bitsearch.jsp' </ul>
<!-The script starts->
<script language = "javascript" type = "">
Function Countdown (SECS) {
tiao.innertext = secs;
if (--scs> 0)
settimeout ("Countdown ("+SECS+"), 1000); 1000);
}
countdown (3);
</script>
<!-Script end->
Button type:
<Input name = "pClog" type = "Button" value = "Go" Onclick = "LOCATION.HREF = '// Www.vevb.com/'>>
Link:
<A href = "javascript: hestory.go (-1)"> Back to the previous step </a>
<a href = "<%= request.servervariables (" http_referr ")%>"> Back to the previous step </a>
Direct jump type:
<script> Window.Location.href = '// www.vevb.com'; </script>
Open a new window:
<A href = "javascript:" Onclick = "Window.open ('// Www.vevb.com', '', 'Height = 500, width = 611, scrollbars = yes, status = yes')" House </a>
JS jump page reference code
The first type:
<script language = "javascript" type = "text/javascript">
Window.location.href = "Login.jsp? Backurl ="+Window.Location.href;
</script>
The second type:
<script language = "javascript">
alert ("Return");
window.history.back (-1);
</script>
Third type:
<script language = "javascript">
Window.navigate ("Top.jsp");
</script>
The fourth type:
<script language = "javascript">
self.Location = 'Top.htm';
</script>
Fifth type:
<script language = "javascript">
alert ("illegal visit!");
top.Location = 'xx.jsp';
</script>
===== JavaScript pop -up selection box jump to other pages =====
<script language = "javascript">
<!--
function logout () ... {
if (Confirm ("Are you sure you want to cancel your identity? Is it-Select OK, No-Select Cancel") ... {{
Window.location.href = "logout.asp? Act = logout"
}
}
->
</script>
===== JavaScript pop -up prompt box jump to other pages =====
<script language = "javascript">
<!--
function logout () ... {
Alert ("Are you sure you want to cancel your identity?");
Window.location.href = "logout.asp? Act = logout"
}
->
</script>