onLoad NewWindow...

Results 1 to 2 of 2

Thread: onLoad NewWindow...

  1. #1
    dee Guest

    Default onLoad NewWindow...

    How can I get the NewWindow(doPop-up) script to appear ONLY on the users initial visit? Here is the code:<BR><BR>&#060;script LANGUAGE="JavaScript"&#062;<BR>&#060;!--<BR>closetime = 20; <BR>function Start(URL, WIDTH, HEIGHT) {<BR>windowprops = "left=0,top=0,width=" + WIDTH + ",height=" + HEIGHT;<BR>preview =, "preview", windowprops);<BR>if (closetime) setTimeout("preview.close();", closetime*1000);<BR>}<BR><BR>function doPopup() {<BR>url = "http://www...";<BR>width = 300; <BR>height = 210; <BR>delay = 1; <BR>timer = setTimeout("Start(url, width, height)", delay*1000);<BR>}<BR>//--&#062;<BR><BR>Any help is appreciated

  2. #2
    Join Date
    Dec 1969

    Default How do you *KNOW*...

    ...that it is the user&#039;s INITIAL visit???<BR><BR>You have to *remember* that somehow, yes? Which means either using ASP to remember it in a DB or some such or using a cookie (and JavaScript coding) to remember it on the client&#039;s machine.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts