Is there an easy way to modify this code so that the target URL opens in the SAME window?
<script type="text/javascript"> window.open ('YourNewPage.htm','_self',false) </script>
see reference: http://www.w3schools.com/jsref/met_win_open.asp
What is the difference between window.location.href and window.open () methods in JavaScript?
What's the difference between: $(window).scrollTop() and $(document).scrollTop() Thanks.
Is there a difference between these two lines? var url = "http://www.google.com/"; window.location = url; window.location.replace(url);