Show TextField value in Dialog : JavaScript DHTML examples (example source code) » Form Control » TextField

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   Form Control   » [  TextField  ]   
 



Show TextField value in Dialog

Please note that some example is only working under IE or Firefox.

/*
Javascript Essentials
by Jason J. Manger

Publisher: Mcgraw-Hill Osborne Media; 

ISBN: 0078822343
*/

<!-- 
  Program 3-14
-->
<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>
Related examples in the same category
1.  TextField focus and select all
2.  TextField focus, blur, and click action
3.  Display textfield value in new page
4.  JavaScript Loan Calculator
5.  Another TextField jump
6.  TextField get Focus and clear content
7.  Validate an input field with minimum and maximum values
8.  Validate an field with a maximum number of characters
9.  Select the textfield and focus
10.  Focus an input field
11.  Jump to the next field
12.  Get textfield value
13.   Methods and Properties of the Text Object
14.  Selecting Text Upon Focus
15.  assign a default value to a Text object
16.  Compound Interest Calculator
17.  Resetting a Text Object to Default Value
18.  Getting and Setting a Text Object's Value
19.  Passing a Text Object (as this) to the Function
20.  Text Object Select and Focus
21.  Data Validation via an onChange event Handler
22.  Add textfield dynamically into HTML
23.   Firing the onSame Event (FireFox)
24.  Numerals Only
25.  Letter only, yes no only textfield
26.  Auto focus textfield
27.  Block enter textfield
28.  If the textfield has been changed








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.