if(firefox and is on a computer){ alert(\'using firefox on a computer\') }else{ alert(\"using something else!\"); }
How can I do this?
Like this: Check for Firefox. Or some other browser.
window.onload = function() { // alert(navigator.userAgent); if (navigator.userAgent.indexOf("Firefox") > 0) { alert("ff"); } }