470,591 Members | 1,484 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

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,width=650,location=no,"
+ "scrollbars=no,menubars=no,toolbars=no,resizable=n o";
window.open(page, "Popup", windowprops);
}
Jul 23 '05 #1
2 1448
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:
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,width=650,location=no,"
+ "scrollbars=no,menubars=no,toolbars=no,resizable=n o";
window.open(page, "Popup", windowprops);
}

Jul 23 '05 #2
I got it, Thank you
"Kien" <ca*********@hotmail.com> wrote in message
news:Vw****************@news-server.bigpond.net.au...
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:
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,width=650,location=no,"
+ "scrollbars=no,menubars=no,toolbars=no,resizable=n o";
window.open(page, "Popup", windowprops);
}

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by HarveyB | last post: by
2 posts views Thread by PC User | last post: by
8 posts views Thread by Chris | last post: by
3 posts views Thread by Tim::.. | last post: by
4 posts views Thread by amerar | last post: by
5 posts views Thread by =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.