Posted By

johnloy on 07/05/09


Tagged

javascript textmate browsers IE8


Versions (?)

sniffing ie8 with js object detection


 / Published in: Other
 

  1. function IEversion() {
  2. if (document.documentMode != 8 && document.namespaces && !document.namespaces[this.ns]) {
  3. this.IE6 = true;
  4. this.IE7 = true;
  5. }
  6. else if (document.documentMode == 8) {
  7. this.IE8 = true;
  8. }
  9. }

Report this snippet  

You need to login to post a comment.