Thursday, 21 January 2016

HTML Forms and JavaScript

}JavaScript is very good at processing user input in the web browser
}HTML <form> elements receive input
}Forms and form elements have unique names
}Each unique element can be identified

}Uses JavaScript Document Object Model (DOM)
..........................................................................
document.formname.elementname.value
Thus:
document.addressform.yourname.value
document.addressform.phone.value
document.addressform.email.value

0 comments:

Post a Comment