Ryan's District Boards

Computer, programming, and webmaster help , support , tips and tricks => Tutorials Zone! => Internet webmaster computer programming technology tips and tricks => Java Script Tutorials => Topic started by: stevereno159 on May 22, 2006, 09:04:27 AM

Title: Determining browser type using object detection
Post by: stevereno159 on May 22, 2006, 09:04:27 AM
 Determining browser type using object detection

In a perfect world, Netscape and IE would co-exist happily together, with both browsers supporting fully a unified set of objects and elements...but then again, if that world existed, I wouldn't be here right now, but on a private island relaxing and enjoying the lovely sun. The truth of the matter is, Netscape and IE will probably never fully embrace each other's unique technology, at least not in the foreseeable future. What this means to us as JavaScripters is that we will need to continue to add browser-type detection code to our scripts for a long time to come. This could mean bad news, if you're still using the navigator object of JavaScript to do your browser "sniffings". However, if you're familiar with using object detection to get the job done, it's another story. In this tutorial, I'll show you exactly what object detection is, and how it can save you a lot of energy when it comes to sniffing out the browser type of your surfers. Sounds like fun!

CLICK HERE TO READ ALL http://www.javascriptkit.com/javatutors/objdetect.shtml