Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Several ways of URL jumping
Several ways of URL jumping
1、HTML:

& lthead & gt? & lt! - ? The following methods just refresh without jumping to other pages? -& gt; & ltmeta? Http-equiv= "refresh"? content=" 10 " >? & lt! - ? Go to other pages regularly in the following ways? -& gt; & ltmeta? Http-equiv= "refresh"? content = " 5; url = hello.html " & gt& lt/head & gt; 2、javascript:

(1), window.location.href

& lt script? language="javascript "? type = " text/JavaScript " & gt; //? Jump directly in the following ways? window . location . href = ' hello . html '; ?

//? Jump regularly in the following ways? setTimeout(" JavaScript:location . href = ' hello . html ' ",? 5000);

& lt/script & gt; ② Jump to the window navigation mode.

& lt script? language = " javascript " & gt

window . navigate(" target . aspx "); & lt/script & gt; ③ Window, position and replacement mode

& lt script? language = " javascript " & gt

window . location . replace(" target . aspx "); & lt/script & gt; ④ Self-positioning mode

& lt script? language = " JavaScript " & gt

self . location = ' target . aspx '; ? & lt/script & gt; ⑤. Top position mode

& lt script? language = " javascript " & gt

top . location = ' target . aspx '; ? & lt/script & gt; 6. Return to mode

& lt script? language = " javascript " & gt

alert(" return ");

window . history . back(- 1); ? & lt/script & gt;