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);
} 2 1532
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); }
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); }
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: HarveyB |
last post by:
I would like to generate non-modal popup windows from
ASP.Net code-behind. I have tried using Client Side
scripting like "function Test(){
window.open('test.htm',_blank,...
|
by: Davey |
last post by:
I have a website which has a popup window (this only opens when the user
chooses to open it). In the popup window I have a <select> control which
lists a selection of "classes". Each class has a...
|
by: PC User |
last post by:
I'm creating a shortcut menu to popup over my richtext box. Its a form
with a listbox of menu items with associated richtext activex (rtf)
editing commands. I found a way to transfer a value from...
|
by: Earl Teigrob |
last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
|
by: Chris |
last post by:
Hi,
I want to use a popup control in my asp app like the one in outlook web
access and msn. This will be used to notify users of a change in the
database. I plan on using the one on codeproject,...
|
by: Tim::.. |
last post by:
Can someone please help....
I'm having major issues with a user control I'm tring to create!
I an trying to execute a sub called UploadData() from a user control which I
managed to do but for...
|
by: amerar |
last post by:
Hi Everyone,
I am very new to this, so I'm hoping someone can help.
I have a form with buttons that a user can click. What I need to do
is that when a user clicks a button, before the form...
|
by: SAL |
last post by:
hello,
I'm using a radiobuttonlist in an updatepanel in an item template in a
Gridview control. I'm populating the radiobuttonlist in the RowDataBound
event. I have the control toolkit registered...
|
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= |
last post by:
Hi all
Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net,
visual studio 2008):
I have created a user control (e-mail enquiry form) which is designed to
accept text...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |