/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type=â€text/javascriptâ€> if (window.XMLHttpRequest) { //IE 7, mozilla, safari, opera 9 } else { // IE6, older browsers } </script> <script type=â€text/javascriptâ€> if (typeof document.body.style.maxHeight != “undefinedâ€) { // IE 7, mozilla, safari, opera 9 } else { // IE6, older browsers } </script> <script type=â€text/javascriptâ€> isIE7 = false; /* @cc_on @if (@_jscript_version &;gt;= 5.7) isIE7 = true; @end @*/ </script> <script type=â€text/javascriptâ€> if((document.all)&&(navigator.appVersion.indexOf(â€MSIE 7.â€)!=-1)){ document.write(â€IE 7 “); } </script>
URL: http://blog.t8d.de/2007/01/09/ie7-und-javascript-sicher-erkennen/