View Full Version : sniff for IE6+ or NS7+
ventura
09-12-2003, 05:44 PM
how can i sniff to make sure that a user is using either IE6+ or NS7+? i thought about using the document.getElementById but that is for 5+ and 6+ respectively.
I came across these a while back, if they help
var is_nn6 = (navigator.product == 'Gecko') && (!window.find)?true:false;
var is_nn7 = (navigator.product == 'Gecko') && (window.find)?true:false;
Also
ns7=document.getElementById&&!document.all
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.