pop up windows

I want to have a pop up window that the user must close (by clicking a button/image/text or just closing the window) before they can continue. How do i do this?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

In IE 4.0 and later, there is a JavaScript function named:


Using this function you can create a modal dialog the user must close in order to continue. The dialog will be the page specified at the 'url' argument.

The disadvantage of this method is, of course, it is useful only in IE 4.0 and later.

There are less sophisticated functions in JavaScript, which are rellevant to NS as to IE. These are the 'alert', 'confirm' and 'abort' functions.

If you want to use them instead of the 'showModalDialog', write back and I'll give you full explanation.
fwickesAuthor Commented:
Yes I would like to know about 'alert', 'confirm' and 'abort'
The 'confirm' method:

Displays a Confirm dialog box with the specified message and OK and Cancel buttons.
Syntax: confirm(message)
'message' is the message to be displayed in the dialog box.
Returns: true - if OK pressed
         false - if Cancel pressed


The 'propmt' method: (Sorry, not 'abort')

Displays a Prompt dialog box with a message and an input field, and OK and Cancel buttons.

Syntax: prompt(message[,defaultValue])
'message' is the message to be displayed in the dialog box.
'defaultValue' is the default value of the input field.


The 'alert' method:

Displays dialog box with message and OK button.

Syntax: alert(message)
'message' is the message to be displayed in the dialog box.


All of the above methods should function properly in IE as in NS, therefore they are recommended if there is no need for more complicated modal windows.

Good Luck!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fwickesAuthor Commented:
Thank you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Internet Marketing

From novice to tech pro — start learning today.