Common JavaScript page Jump code
License:
<Input name = "pclog" type = "button" value = "/go" onclick = "location. href = 'HTTP: // www.itpx.net/'"> <br/>
Link:
<A href = "javascript: history. Go (-1)"> return to the previous step </a> <br/>
<A href = "<% = request. servervariables (" http_referer ") %>"> return to the previous step </a> <br/>
Direct jump:
<SCRIPT> window. Location. href = 'HTTP: // www.itpx.net '; </SCRIPT> <br/>
Open a new window:
<A href = "/JavaScript:" onclick = "window. open (, '', 'height = 500, width = 611, scrollbars = Yes, status = Yes ')"> Training </a> <br/>
Article Source: feino Network (www.firnow.com): http://dev.firnow.com/course/1_web/javascript/jsjs/2008628/128848.html
JS page Jump Methods
First:
<Script language = "JavaScript" type = "text/JavaScript">
Window. Location. href = "login. jsp? Backurl = "+ window. Location. href;
</SCRIPT>
Second:
<Script language = "JavaScript">
Alert ("return ");
Window. History. Back (-1 );
</SCRIPT>
Third:
<Script language = "JavaScript">
Window. navigate ("Top. jsp ");
</SCRIPT>
Fourth:
<Script language = "JavaScript">
Self.location+'top.htm ';
</SCRIPT>
Category 5:
<Script language = "JavaScript">
Alert ("illegal access! ");
Top. Location = 'xx. jsp ';
</SCRIPT>