[Javascript] RES: (no subject)
David Hucklesby
davidh126 at writeme.com
Thu Aug 30 20:12:17 CDT 2007
On Wed, 29 Aug 2007 17:01:48 -0700, Hassan Schroeder wrote:
>
> Bad enough to find out now that more browsers than just IE support document.all :-)
If you need to detect IE, you could use something like:
if (typeof element.style.filter == 'string') ...
where "element" is some DOM element or other.
What I do to single out IE is add an extra DIV in the HTML :
<!--[if IE]><div id="for-msie"><[endif]-->
then I can do something like:
isIE = !!document.getElementById('for-msie');
FWIW.
Cordially,
David
--
More information about the Javascript
mailing list