Results 1 to 2 of 2

Thread: javascript to redirect

  1. #1
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default javascript to redirect

    Hello

    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.

    Al

  2. #2
    Join Date
    Mar 2006
    Posts
    12
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    ...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.

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •