<html> | |
<head> | |
<script> | |
function change() { | |
document.getElementById("im").type="image"; | |
} | |
</script> | |
</head> | |
<body onload="change()"> | |
Test the changing of an input type=TEXT to type=IMAGE. This test is to make sure that | |
the height and width attributes are used for the new type of IMAGE. | |
<form> | |
<br>input element <input id="im" type="text" src="resources/apple.gif" height="17" width="19"> | |
</form> | |
</body> | |
</html> |