Thursday, 21 January 2016

Using Form Data

Personalising an alert box
<form name="alertform">
Enter your name:
<input type="text" name="yourname">
<input type="button" value= "Go" onClick="window.alert('Hello ' + ® document.alertform.yourname.value);">

</form>
.................................
Naming Form Elements in HTML

<form name="addressform">
Name:  <input name="yourname"><br />
Phone: <input name="phone"><br />
Email: <input name="email"><br />
</form>

0 comments:

Post a Comment