Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Compatibility Document Mode documentMode compatMode Standards Quirks Engine Mode
#DefineFunction startMSIE(url) msie = ObjectCreate("InternetExplorer.Application") msie.addressbar = @FALSE msie.statusbar = @FALSE msie.menubar = @FALSE msie.toolbar = @FALSE msie.visible = @TRUE msie.navigate(url) WaitForMSIE(msie) Return(msie) #EndFunction #DefineFunction WaitForMSIE(msie) While msie.busy || msie.readystate <> 4 TimeDelay(0.5) EndWhile Return #EndFunction url = 'http://www.google.com' br = startMSIE(url) ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ; Get the document mode of the engine ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engine = 0; If (br.document.documentMode) ; IE8 or later engine = br.document.documentMode; Else ; IE 5-7 engine = 5; // Assume quirks mode unless proven otherwise If (br.document.compatMode) If (br.document.compatMode == "CSS1Compat") Then engine = 7; // standards mode EndIf ; There is no test for IE6 standards mode because that mode ; was replaced by IE7 standards mode; there is no emulation. EndIf ; Display the document compatibility mode. Pause('Engine',engine) br = 0 ExitReference: http://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx
Article ID: W18138
Filename: Get DocumentMode of IE.txt
File Created: 2013:02:21:09:27:32
Last Updated: 2013:02:21:09:27:32