When using javascript in IE 7, you don't need to use getElementById Thus in IE 6 you would do: Code: <script>var city = document.getElementById('city');alert(city.innerHTML);</script> And in IE 7 you can do Code: <script>alert(city.innerHTML);</script> city is automatically an object pointing to the HTML tag with the id of that name. This also means that if you accidentally use a variable with the same name as an id of an element, you will get errors. I'm sure this giv... Read Full Post
© Copyright Real Estate Webmasters 2004-2010, All Rights Reserved. Terms of Service