Return to Snippet

Revision: 36554
at November 23, 2010 05:03 by serialk89


Initial Code
//DETERMINAR EL MODO DE COMPATIBILIDAD
engine = null;
if (window.navigator.appName == "Microsoft Internet Explorer")
{
   // This is an IE browser. What mode is the engine in?
   if (document.documentMode) // IE8
      engine = document.documentMode;
   else // IE 5-7
   {
      engine = 5; // Assume quirks mode unless proven otherwise
      if (document.compatMode)
      {
         if (document.compatMode == "CSS1Compat")
            engine = 7; // standards mode
      }
   }
   // the engine variable now contains the document compatibility mode.
   if(engine == 7){
   	alert("Modo de compatibilidad IE7");
   }
}

Initial URL

                                

Initial Description
determina en el modo de compatibilidad que tiene IE

Initial Title
DETERMINAR EL MODO DE COMPATIBILIDAD IE

Initial Tags

                                

Initial Language
JavaScript