View Full Version : javascript to redirect

10-12-2009, 06:15 PM

I've written (or seriously altered a template) website but it only works in IE6-7. I want to put it live, and have the index page check if the browser is IE6 or 7. If it is, it will divert it to the new site. If its anything else, it will send the browser to a very simple one liner which says "Page only available in IE6" or something......

I know its rough, but it will then give me time to make the new page cross browser compatible.

Thanks in advance.


Troy III
10-12-2009, 08:51 PM
...to simplify your effort;
in the page [your index page] put the code of your one liner which says: [although I suggest you change your message from] "Page only available in IE6" or something... [to : This page is currently under developement... please visit us soon... (or something closer to that) instead] and ad this piece of code to it.

<!--[if IE]>
<script type="text/javascript">document.location="your new location here"</script>