hi i need to modify this simple code <SCRIPT LANGUAGE="JavaScript"> window.open("http://www.watchingate.com/","windowname","height=400,width=600,scrollbars, resizable") </SCRIPT> Code (markup): it's a pup up code which open a new window for my new website, now when i add this code to <head> section , the window appears everytime i click on a page or a post, what i want is that the window appears just once or 2 when the visitors visit my site because i don't want them to feel annoyed. also i'm using blogger so i can't upload files or anything else just html and javascript codes so plz i need some help here
Set a cookie. When the user visit your site for the first time, your popup will appear and you'll set a cookie to record that. Then, when the user navigate to another page, you'll just check if there is such cookie. If yes, no popup. You can learn how to set cookies here: www.w3schools.com/JS/js_cookies.asp - Rufas
Rufas' idea is a good one. Cookies are a way to track the users movements as well as seeing if they have been to your site before. Although European laws are changing with regards to the use of cookies.