How to open pop window?

by Nandupatel on April 26, 2009

You can see right now one pop up window will open when ever you will visit my page. I think and this is good idea to earn money by giving this type of ad. I will remove it after 10 days so don’t worry it is not going to affect you and bother you. Thanks for you cooperation.

Here are simple step to do it.
1. log in to blogger.
2. go to layout>>edit html
3. find this code </head>
4. Paste below text just before this text </head>

<script>

var theURL = &#39;http://themonster.in&#39;;
var width = 1200;
var height = 800;

function popWindow() {
newWindow = window.open(theURL,&#39;newWindow&#39;,&#39;toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=&#39;+width+&#39;,height=&#39;+height);
}

</script>

5. Chage <body> text with <body onload=”popWindow()”>
6. change this url http://themonster.in with your URL(which you want to open in pop up).
7. change width and height.
8. Save template.
9. You are done.

Leave a Comment

Previous post:

Next post: