Form button on click event
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> function yourMessage(quote) { alert(quote); } </script> </head> <body> Click <input type="button" value="HERE" onClick="yourMessage('Hi!')"> A message!</p> </body> </html>