[thelist] Script for M$IE only, or not

Felix Miata mrmazda at ij.net
Mon Apr 3 10:07:25 CDT 2006


On 06/04/01 16:47 Felix Miata apparently typed:

> My understanding of JS is next to 0, so every time I want to do the
> simplest thing I haven't done before I have to go struggle through some
> tutorial, this time at http://www.quirksmode.org/. Again, I'm getting
> nowhere with something that seems it should be simple. I just want to
> throw an alert based upon whether the browser is really IE or any other
> browser. It seems object detection is the way to go, but I'm not finding
> a suitable object to detect. Someone suggested window.ActiveXControl but
> NAICT it seems that that is an option that can be disabled and so
> wouldn't be suitable. Can anyone help?

FWIW, the URL in my .sig below is the page for which I asked. Opening it
with IE should make evident why I only want the event to occur if the
visitor is really using IE and not some impostor like Opera.

The current possibly too simple solution actually came from a discussion
on irc://moznet/js and will most likely need revision when IE7 goes GA,
and that presumes I won't change my mind about the whole idea before
that happens.

Comments welcome, particularly if you have ideas about who you think the
target audience for the page is. What actually triggered my idea for it
in the first place is the core of
http://mrmazda.no-ip.com/css/colstyle.css which as yet I use only on 4
pages.
-- 
"Have nothing to do with the fruitless deeds of darkness, but
rather expose them."			Ephesians 5:11 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://mrmazda.no-ip.com/auth/auth



More information about the thelist mailing list