Control over what page is loaded into the browser rests in the JavaScript property window.location. By setting window.location equal to a new URL, you will in turn change the current webpage to the one that is specified. If you wanted to redirect all your visitors to www.google.com when they arrived at your site, you would just need the script below:
<pre><script type="text/javascript">
<!--
window.location = "http://www.google.com/"
//-->
</script></pre>

0 comments:

Post a Comment

 
Top
Blogger Template