Jump to content
xisto Community
BooZker

Javascript Browser Redirection For Safari Cant find one anywhere

Recommended Posts

I need a script for Safari visitors for my forum. My forum works on all browsers except safari. Even my actual site works for safari just not the forum. I have looked on the google, here, and javascript.internet.com and i am unable to find a script for a Safari browser redirect. Can someone help? Just what Safari would be named in javascript would be enough. Or if someone here know whats wrong with my forum at http://forums.xisto.com/no_longer_exists/ on Safari tell me how to fix it.

Share this post


Link to post
Share on other sites

I should get full copyrights to your site booz :P

here is the javascript you will need. However this will open redirect on browser types, which means you have to set up all your pages based on that browser. Annoying yes, but of course by then you start using php includes and then just edit those files and nothing else.

<script language="JavaScript"><!--browserName=navigator.appName;browserVer=parseInt(navigator.appVersion);if ((browserName=="Netscape" && browserVer>=4) || (browserName=="Microsoft Internet Explorer" && browserVer>=4))version="ver4";elseversion="other";/* Version 4 browser URL */if (version=="ver4")window.location="http://someplace.com/ver4.html";/* Other browsers URL */elsewindow.location="http://someplace.com/other.html";//--></SCRIPT> 

You can remove the version stuff it won't effect it at all.

Share this post


Link to post
Share on other sites

If there is anything i can do to repay you just let me know. So i just have to type in Safari? This will actually work if i just type in that name?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.