Jump to content


Photo

Help reagrding message box


  • Please log in to reply
3 replies to this topic

#1 jana

jana
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts
  • LocationIndia

Posted 28 September 2006 - 06:45 AM

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

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 28 September 2006 - 02:57 PM

You'll need an onclick handler on the submit tag... I assume you mean "after" clicking but before submitting?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 FrOzeN

FrOzeN
  • Members
  • PipPipPip
  • Advanced Member
  • 70 posts

Posted 29 September 2006 - 08:58 AM

<input type="submit" value="Name of button" onClick="javascript:alert('You clicked this button!');"  />

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

#4 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 01 October 2006 - 09:22 AM

More like a JavaScript question, but just do what FrOzeN said.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users