Amazon.com Widgets

Adfly

Thursday 14 February 2013

How to get a Website to Open a New Window Automatically with JavaScript and HTML


To get your page to open lots of new windows copy this into your pages html:
Were it says http://www.all-things-tech.co.uk/p/d.html change that to the the url you want to open with the new window.
<script type="text/javascript"></p>
window.open ("http://www.all-things-tech.co.uk/p/d.html","_blank", "status=1,toolbar=1");
</script>
There is one draw back this and that is that the person has to have disabled pop_ups for it to work but you can prompt the viewers to do this on your page.
Click here for blogpost showing you a link about this here.

0 comments :

Post a Comment

Please leave a comment letting me know whether this worked for you or what you think!
Comments that are not related to the post will not be approved and won't be posted.