JK Web Studio

Specializing in efficient and user friendly web design solutions

info@jkwebstudio.com

Objects and JavaScript in IE8

Quick observation in IE8. If you have a form element with id=”myId”, myId is available directly through JavaScript as an object.

<input type=”text” id=”myId” value=”some value” />

<script>
alert(myId.value);
</script>

Leave a Reply