tarienn Posted March 28, 2006 Share Posted March 28, 2006 Hey, my website was optimized for firefox, and I want to restrict my website for firefox only. Is there a way I can redirect non firefox users to another page? Link to comment Share on other sites More sharing options...
real_illusions Posted March 28, 2006 Share Posted March 28, 2006 yeah..you can use javascripthttp://www.w3schools.com/js/js_browser.asp will give you the basicsi'm sure theres plenty of scripts around if you search enough on the net that can do exactly what your after:) Link to comment Share on other sites More sharing options...
Skemcin Posted March 28, 2006 Share Posted March 28, 2006 several ways. but I don't feel comfortable explaining the options to you because I do not feel that your approach is appropriate. I do not feel that you should segregate your visitors. I understand that you might want to promote firefox - I am a active member of the spread firefox community as well, but coding a site only for one browser is not advisable. You can say that the site is "suggested to be viewed" in Firefox or whatever other browser you might code for - but isolating users is not part of the solution. Code your site to work in all browsers so you do not limit your traffic.(edit)looks like real_illusions types faster than me. javascript is one of the methods, a more efficient way would be using a server side scripting language - but again, please note my concerns. Link to comment Share on other sites More sharing options...
calvin182 Posted March 28, 2006 Share Posted March 28, 2006 i agree. I would like everybody to view my site in firefox too, but the reality is firefox still does not hold the majority. like skemcin said, suggest it's viewing in firefox, but dont block other users. As long as you code your page well (to W3C specifications) and validate your pages, everything works well for the most part. The only issues I've had is using div tags, in IE they leave a space like the p tags do, but a quick switch to span fixes it right up. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now