Javascript examples for Browser Object Model:History
Loading another html page from javascript and push to history
<html> <head></head> <body onload="triggerJS();"> <script> function triggerJS(){/*from www.j a v a 2 s .c om*/ location.replace("http://www.java2s.com"); /* location.assign("http://www.java2s.com"); //Use assign() to have the first page in the history */ } </script> </body> </html>