A quick one-liner that tests if the browser is Internet Explorer (Windows); useful if you have functions/methods only applicable to the beast in question:
if (!/*@cc_on!@*/0) { return; };
// IE code goes here...
For those of you wondering, the extra exclamation mark within the conditional compilation statement (cc_on!) double negates (!!) the zero, which means only Internet Explorer will return a value of FALSE for the condition.
Of course, it can also be used within an if … else situation:
if (!/*@cc_on!@*/0) { alert("not IE"); }
else { alert("IE"); }
Short but quite sweet.

Previous Comments ~
No comments have been posted yet – comments are open though, so you can start the conversation if you so desire…