473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 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);
}

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
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,...
4
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...
2
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...
1
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...
8
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,...
3
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...
4
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...
6
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...
5
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
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...
0
tracyyun
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...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.