Help - Search - Members - Calendar
Full Version: alert boxes
HTMLHelp Forums > Programming > Client-side Scripting
cedric
Hi, is it possible to do the following (if so how would I do this?):
I would like when they click on a word a popupapears. (ok so far)
But in that popup they would have to choose 'with' or 'without'.
Depending on what they choose, there is a form in the page that needs to be excecuted.

Can someone help me with this please?

many thanks
Christian J
With the javascript confirm() method you can display a message and let the user click OK or Cancel (the exact wording depends on the user's browser, and can't be changed).

Or you can make a popup HTML window with two ordinary form buttons inside.
cedric
how would i make that last one then?
cedric
I found how to make a popup html but the problem i'm having now is that the script is not excecuted when you click on the possibility of choice.
The popup window is in fact another html page but smaller. In that html page the script works but if that page is shown like a popup, it's not working anymore?
Christian J
See http://www.javascriptkit.com/javatutors/remote2.shtml
cedric
thanks alot Christian you solved my problems!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.