Form Method

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
Several events are based on forms and form elements. The submit and reset Events

The submit and reset handlers work in reaction to the two dedicated use form buttons.

<INPUT type= " submit">

<INPUT type = " reset">

The event handlers for these two buttons are placed within the <FOBM> tag rather than within the individual button tags because the event handlers are looking for the action generated by the button, not the button click itself.

<FORM name ="form1 " onSubmit= "thankYou 0" on Reset=" beSure 0">

Two functions to handle submit and reset events from a form. Example:
<SCRIPT language javascript>
function thankYou ) {
alert (" Thanks for sharing your information with us").

return true;

function beSure ( ){

if (confirm ("Are you sure you want to clear the contens of this form?")

return true;
else
return false;
}
</SCRIPT>



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.