o.k. I have got your version done.social_experiment wrote:I did copy and paste it. Then i retyped it and it worked; 9.0.8112.16421 is the same version is use.wvoyance wrote:retype? You simply need to copy and paste. I don't believe it will wok.
Here is a snippet i created from scratch; it also works in IE 9Code: Select all
<html> <head> <title>Testing onChange again</title> </head> <body> <script type="text/javascript" ><!-- function foo(str) { alert(str); } //--></script> <form method="get" > enter one ISBN: <input type="text" name="field1" onchange="foo(this.value);" /> <button type="submit">Submit</button> </form> </body> </html>
It is because my browser blocked active code.
But my version still cannot.
What is the difference?
<html>
<head>
<title>insert many books</title>
</head>
<body>
<script type="text/javascript"><!--
function start(str){
alert("enetr start");
}
//--></script>
<form method="get">
enter one ISBN:
<input type="text" name="fisbn"
onChange="start(this.value)">
<button type="submit">Submit</button>
</form>
</body>
</html>