<html>
<head>
<title>Using the handleEvent method</title>
</head>
<body>
<script language = "JavaScript">
<!--
function handleChange(evnt){
alert("changed");
}
function displayText(){
document.form1.msg.value += "Change made to object\n";
}
window.onchange = handleChange;
-->
</script>
Choose a file:
<br>
<form name="form1">
<input type="file" size="40" name="uploadbox" onChange='displayText()'>
<br><br>
<textarea name="msg" rows="10" cols="50"></textarea>
</form>
</body>
</html>
|