Saturday, October 24, 2009

How do i create a "Firefox Only" Script for Blogger?

Ok, it is like this, i know the flas of IE6 and i want my readers(my friends) to use firefox on my blog. I want to make the blog render in Firefox but not in internet explorer, hopefully a javascript. How do i do that? When rendering in Internet Explorer i want either a blank page, redirect to mozilla.org or a msaage saying "please Use Firefox" as a popup.
How do i create a "Firefox Only" Script for Blogger?
It would be safer to detect for Internet Explorer and then do something then.





All that takes in JavaScript is to look for something in Internet Explorer that is not available in any other browser. The Active X component is one way.





So the javascript piece will display an alert message in Internet Explorer and then redirects them to mozilla.com where they can download Firefox:





if (window.ActiveXObject) {


alert('Please use Firefox);


document.location = 'http://www.mozilla.com/';


}
jewish name

No comments:

Post a Comment

Blog Archive