var browserName=navigator.appName; var b; function browserKontrol(){ // Tarayıcı uygulamasının ismi Netscape ise b değeri 1 olsun (Chrome-Firefox) if (browserName=="Netscape") { b=1; } // Netscape değilse bu isim IE ile aynı kefeye koy. :) else { b=0; } }