Help with popup control please

T

Thien-Anh

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=no";
window.open(page, "Popup", windowprops);
}
 
K

Kien

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
 
T

Thien-Anh

I got it, Thank you
Kien said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top