Home
Run >
<!DOCTYPE html> <html> <head> <!-- www.techstrikers.com --> <title>My first Javascript code</title> </head> <body bgcolor="#bnde45"> <fieldset> <legend>Javascript OnSubmit Event</legend> <H3>Example of onSubmit Event Handler </H3> Type your name and press the button<br> <form name="myform" onSubmit="alert('Thank you ' + myform.data.value +'!')"> <input type="text" name="data"> <input type="submit" name ="submit" value="Submit this form"> </fieldset> </body> </html>