Return to Snippet

Revision: 5351
at February 29, 2008 04:35 by localhorst


Initial Code
<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>

Initial URL
http://blog.t8d.de/2007/01/09/ie7-und-javascript-sicher-erkennen/

Initial Description

                                

Initial Title
detect IE7 with JavaScript

Initial Tags

                                

Initial Language
JavaScript