jana Posted September 28, 2006 Share Posted September 28, 2006 can anyone tell me how to bring a message box in a webpage(HTML) after clicking submit button. Quote Link to comment https://forums.phpfreaks.com/topic/22347-help-reagrding-message-box/ Share on other sites More sharing options...
fenway Posted September 28, 2006 Share Posted September 28, 2006 You'll need an onclick handler on the submit tag... I assume you mean "after" clicking but before submitting? Quote Link to comment https://forums.phpfreaks.com/topic/22347-help-reagrding-message-box/#findComment-100300 Share on other sites More sharing options...
FrOzeN Posted September 29, 2006 Share Posted September 29, 2006 [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. Quote Link to comment https://forums.phpfreaks.com/topic/22347-help-reagrding-message-box/#findComment-100725 Share on other sites More sharing options...
Daniel0 Posted October 1, 2006 Share Posted October 1, 2006 More like a JavaScript question, but just do what FrOzeN said. Quote Link to comment https://forums.phpfreaks.com/topic/22347-help-reagrding-message-box/#findComment-101743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.