Looking at the below, it would appear that (in IE at least) onchange only fires when the data in the field is altered by the user, that is after the field receives focus.
Code:
<input type = "text" id = "txt1" size = "20" onchange = "a1()">
<input type = "text" id = "txt2" size = "20" value = "Tracy" onchange = "alert ('Value of txt2 has changed')">
<script type = "text/javascript">
function a1() {
document.getElementById("txt2").value = "Philip";
}
See also:-
http://forums.devshed.com/javascript...ts-581334.html
Edit: Tested in Firefox, same result.
James (007) Bond: (to Bibi) You get your clothes back on, and I'll buy you an ice cream.