Jump to content

Archived

This topic is now archived and is closed to further replies.

jana

Help reagrding message box

Recommended Posts

can anyone tell me how to bring a message box in a webpage(HTML) after clicking submit button.

Share this post


Link to post
Share on other sites
You'll need an onclick handler on the submit tag... I assume you mean "after" clicking but before submitting?

Share this post


Link to post
Share on other sites
[code]<input type="submit" value="Name of button" onClick="javascript:alert('You clicked this button!');"  />[/code]

That will cause a message box to popup when a user clicks on the button.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.