Three methods of JavaScript jump to new page

1. A tag

a tag : & lt; A href=”http://www.jb51.net” title=” Home of scripts “& GT; Welcome< /a>

< A href = “javascript: history. The go (1)” & gt; : : the previous page

< A href = “javascript: history. The go (1)” & gt; : the next page is

< A href=”http://www.jb51.net” title=” script house “target=”_blank”> Welcome< /a>

2. The location object href attributes:

window.location.href=”http://www.jb51.net”; // open a window


3.open :

Windows open ( http://www.w3schools.com , _blank ) ; // in another new window open the window

Read More: