Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup Message when clicking on Radio Button

Status
Not open for further replies.

letaylor

Technical User
Nov 27, 2000
14
US
Hi all...

I have a page with radio buttons. When a user clicks one of the radio buttons I would like a popup message to appear (this is actually a quiz)

Could someone point me in the right direction on how to do this?

-Thanks
Leslie
 
Javacsript would be the best way of doing it.

Do you want a page with full html to pop up or just an alert box with a message in which you can close?

If the former then these is an example at
if the latter you can have an 'onclick' event in your radio buttons-

something like onclick="alert("Your message here");" Caspar Kennerdale
Senior Media Developer
 
I'm looking for an alert box which the user would just close..

If they click True and that is correct a popup message would say "That is correct" If it's false they would get the correct answer...

I've been trying to find info on the onclick popup message thing & I even have the Dreamweaver 3 Bible, but I guess I'm just not looking in the right places..

-Leslie
 
Yeah I did it!

Here was my answer:

<input type=&quot;radio&quot; name=&quot;radio&quot; value=&quot;radiobutton&quot; onClick = &quot;alert('That is Correct')&quot;>

Thanks for sending me in the right direction Caspar...

-Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top