Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Show TextField value in Dialog

<html> <head> <script language="JavaScript"> <!-- function sendData(arg) {   alert("The " + arg.name + " field has changed."); } //--> </script> </head> <body> <form> <table> <tr>  <td>Name:</td>  <td><input name="persname" type="text" onChange="sendData(this)"></td> </tr> <tr>   <td>E-mail:</td>   <td><input name="email" type="text"></td> </tr> </table> </form> </body> </html>