Help with popup control please

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thien-Anh

    Help with popup control please

    Hi there,
    I have this code for a popup window. Everytime i go back to the front page,
    the popup will come up. I want it to pop up only the first time I come to
    the site. Would some one advice please. Thank you
    /* Function popup */
    function popupPage() {
    var page = "advertisement_ popup.htm";
    windowprops = "height=453,wid th=650,location =no,"
    + "scrollbars=no, menubars=no,too lbars=no,resiza ble=no";
    window.open(pag e, "Popup", windowprops);
    }


  • Kien

    #2
    Re: Help with popup control please

    Hi,
    You'll have to use cookies (or something like hidden frame value) to
    keep track of the visit.
    Otherwise, every time the page is reloaded the script function will be
    called.

    Kien

    Thien-Anh wrote:[color=blue]
    > Hi there,
    > I have this code for a popup window. Everytime i go back to the front page,
    > the popup will come up. I want it to pop up only the first time I come to
    > the site. Would some one advice please. Thank you
    > /* Function popup */
    > function popupPage() {
    > var page = "advertisement_ popup.htm";
    > windowprops = "height=453,wid th=650,location =no,"
    > + "scrollbars=no, menubars=no,too lbars=no,resiza ble=no";
    > window.open(pag e, "Popup", windowprops);
    > }
    >
    >[/color]

    Comment

    • Thien-Anh

      #3
      Re: Help with popup control please

      I got it, Thank you
      "Kien" <caoxuankien@ho tmail.com> wrote in message
      news:Vwrlc.9682 $TT.4010@news-server.bigpond. net.au...[color=blue]
      > Hi,
      > You'll have to use cookies (or something like hidden frame value) to
      > keep track of the visit.
      > Otherwise, every time the page is reloaded the script function will be
      > called.
      >
      > Kien
      >
      > Thien-Anh wrote:[color=green]
      > > Hi there,
      > > I have this code for a popup window. Everytime i go back to the front[/color][/color]
      page,[color=blue][color=green]
      > > the popup will come up. I want it to pop up only the first time I come[/color][/color]
      to[color=blue][color=green]
      > > the site. Would some one advice please. Thank you
      > > /* Function popup */
      > > function popupPage() {
      > > var page = "advertisement_ popup.htm";
      > > windowprops = "height=453,wid th=650,location =no,"
      > > + "scrollbars=no, menubars=no,too lbars=no,resiza ble=no";
      > > window.open(pag e, "Popup", windowprops);
      > > }
      > >
      > >[/color][/color]


      Comment

      Working...