473,499 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keep a Popup window open

I created a popup window using createPopup method. Is there anyway to keep
the popup open until the user clicks a button within the popup to close the
popup window. Right now the popup window will close if I click outside the
popup window. I do not want that to happen until the user clicks a button in
the popup window.

thanks....
Nov 19 '05 #1
5 1697
snt
I think you are looking for a Modal window functionality. For IE, you
need to use showModalDialog and for other browsers, you can use
window.open with parameter model=yes to open a modal window. This will
compell the user to close the window to access the parent window. Hope
this helps.

snt
http://www.onlinemall.com
http://www.flexoweb.com

Nov 19 '05 #2
Thanks for the reply but I would want to use that same functionality in the
createPopup method. I do not want to create a modal form... I want to use the
Popupwindow.

thanks again.

If anyone knows if this can be done please let me know...

"snt" wrote:
I think you are looking for a Modal window functionality. For IE, you
need to use showModalDialog and for other browsers, you can use
window.open with parameter model=yes to open a modal window. This will
compell the user to close the window to access the parent window. Hope
this helps.

snt
http://www.onlinemall.com
http://www.flexoweb.com

Nov 19 '05 #3
Angel wrote:
Thanks for the reply but I would want to use that same functionality in the
createPopup method. I do not want to create a modal form... I want to use the
Popupwindow.

thanks again.

If anyone knows if this can be done please let me know...

"snt" wrote:

I think you are looking for a Modal window functionality. For IE, you
need to use showModalDialog and for other browsers, you can use
window.open with parameter model=yes to open a modal window. This will
compell the user to close the window to access the parent window. Hope
this helps.

snt
http://www.onlinemall.com
http://www.flexoweb.com


it cant.. you need to use the Modal functionality, its why it's there.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #4
snt
Curt is right. As far as I know, it cannot be done with createPopup
method. You need to use modal dialogs to accomplish your requirement.

snt
http://www.tec-adv.com
http://www.onlinemall.com

Nov 19 '05 #5
Modal window is the right method..

another method , you could try is to make the focusing itself.. sample code
is in belwo link .. havent tried it..
http://www.irt.org/script/66.htm
"Angel" wrote:
Thanks for the reply but I would want to use that same functionality in the
createPopup method. I do not want to create a modal form... I want to use the
Popupwindow.

thanks again.

If anyone knows if this can be done please let me know...

"snt" wrote:
I think you are looking for a Modal window functionality. For IE, you
need to use showModalDialog and for other browsers, you can use
window.open with parameter model=yes to open a modal window. This will
compell the user to close the window to access the parent window. Hope
this helps.

snt
http://www.onlinemall.com
http://www.flexoweb.com

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
18271
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event,...
38
5000
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
12
12393
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,...
17
2489
by: Applebrownbetty | last post by:
Hi, I'd like to append/amend the following code from the Dreamweaver extension "Open Picture Window Fever" for the ability to center the PopUp window: By default, it allows the window to be...
23
6365
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
4
22152
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...
13
6239
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
7
3645
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
4
9807
by: deBaer | last post by:
Hi! For an in-house web application (it will only be deployed on Firefox browsers with JavaScript turned on), I need to open a preview window (which needs to be a separate window, even if...
0
7131
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
7007
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
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6894
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
7388
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
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.