|
|
<TEXTAREA ...>onChange = "script command(s)"| Usage Recommendation |
|---|
| use it, but don't rely on it |
onChangeonKeyPress
onChange<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
function setupper(myfield)
{
if (myfield.inchange)return;
myfield.inchange=true;
myfield.value=myfield.value.toUpperCase();
myfield.inchange=false;
}
//-->
</SCRIPT>
This script accepts a field object as input, the resets the value of the field to upper case. We can then call the script in the
onChange
<TEXTAREA ROWS=10 COLS=20 NAME="IDlist" onChange="setupper(this)" ></TEXTAREA>
Notice that the one argument for the script is this, meaning that the field passes itself as the argument. This gives us the following form. Type something into the text area, then click in the next field.
|
Recommended Resources |
|||
| web hosting tutorials Credit Help |
Search the Internet Search Engine Help |
Low Fat Lifestyle Internet Traffic |
Web
Hosting Web Design |
|
Discount
Hotel Reservations All
Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003 |
|||