954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Redirecting statement

i have two html one which works in all browser and the other is for ie
ex 1.html (not ie) and 2.html (ie)
i added this in 1.html

!--[if IE]><meta http-equiv="refresh" content="0;URL=2.html/"><![endif]-->

which works
my question is if the visitor visit the same page (2.html) and using different browser
i want to redirect back to 1.html (not ie)

Julia25
Light Poster
47 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

Use javascript to check which browser, then redirect based on that.

stbuchok
Master Poster
730 posts since May 2011
Reputation Points: 120
Solved Threads: 93
 

tried searching but cant find one :(

Julia25
Light Poster
47 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 
stbuchok
Master Poster
730 posts since May 2011
Reputation Points: 120
Solved Threads: 93
 

tried that but cant find a specific script
im not a programmer and it will be difficult. i think no one has done this before. The idea is the my 1.html is compatible with almost browser except ie so i made a specific html for ie (2.html) my concern is if someone share the url of 2.html it will open but not as good as 1.html so i was thinking to redirect visitors from ie going back to 1.html (not ie)

Julia25
Light Poster
47 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

I hate to tell you, but this is nothing new by any means.

If the below link doesn't help you, I'd turn to hiring someone:

http://usefulscripts.wordpress.com/2007/10/26/browser-detection-and-redirection-using-javascript/

stbuchok
Master Poster
730 posts since May 2011
Reputation Points: 120
Solved Threads: 93
 

oh thanks stbuchok!

Julia25
Light Poster
47 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You