Martin Honnen <ma*******@yahoo.de> writes:
IE 6 and Mozilla and Opera have a property
document.compatMode
which has the value 'BackCompat' when in quirks mode.
It has the value "CSS1Compat" in standards mode, but different
browsers have different values for quirks mode.
IE and current Firefox have "BackCompat", but Opera uses "QuirksMode",
and I seem to remember previous versions of Mozilla doing the same.
So, to test for standards/non-standards mode, compare to "CSS1Compat".
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'