Jump to content

Testing for IE :p


Beta

Recommended Posts

Well, i've seen my fair share of people complain about crossbrowser compatibility. And, they always have their own ways of checking for IE. Whether it be the ActiveXObject, or even the document.all...maybe even an appName check...So, how do you check?For me, i'm trying to use this more often:

function isIE() {   if((new Array()).__proto__ != Array.prototype) {	  return true;   } else {	  return false;   }}

hehehehehehe :)

Link to comment
Share on other sites

I typically try to code for the W3C standards and throw in extras to include the IE users (though day by day, I'm less inclined to include them :)):

function handleClick(e){	e = (e) ? e : window.event;	var target = (e.target) ? e.target : e.srcElement;	// target now has the element that sent the event	// regardless of whether the browser is IE, Firefox, Opera, etc.}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...