1 <!DOCTYPE HTML>2 <HTML>3 <HeadLang= "en">4 <MetaCharSet= "UTF-8">5 <title></title>6 <Scriptsrc= "Jquery-1.11.3.min.js"></Script>7 </Head>8 <Body>9 <!-- -Ten <!--the first to second type is opened in a new window; Third method is the original page open - One <!-- - A - - <!--The first method is a tag jump - the <ahref= "2.html"Target= "_blank">Aaaa</a> - <!--two, three or four kinds - - <DivID= "BTN">Skip to Page 2</Div> - <!--Five Kinds - + <ButtonOnClick= "logout ()">Logout</Button> - </Body> + A <!--The second Kind - at <Script> - $(function(){ - $("#btn"). Click (function(){ - window.open ('2.html'); - }); - }); in </Script> - to <!--Third Kind - + <Scriptlanguage= "JavaScript"> - Window.history.forward (1); the * </Script> $ <Script>Panax Notoginseng $(function(){ - $("#btn"). Click (function(){ the window.location='2.html'; + }) A }) the </Script> + - <!--Fourth Type - $ <Script> $ $(function(){ - History.go (1); - $("#btn"). Click (function(){ the window.location='2.html'; - })Wuyi }) the </Script> - Wu <!--Fifth Type - - <Scriptlanguage= "JavaScript"> About functionlogout () { $ Window.close (true); - window.open ("2.html"); - } - </Script> A </HTML>
Prevent page from returning to previous page