[thelist] Safari V2 detect and redirect

ben morrison morrison.ben at gmail.com
Wed Jul 9 12:19:14 CDT 2008


On Wed, Jul 9, 2008 at 6:11 PM, Kenneth Smith <kennethbsmith at yahoo.com> wrote:
> Thanks, though I am not sure how to add that to my JS:
>
> <!-- Begin redirect Safari-->
> <script type="text/javascript">
> if(navigator.userAgent.indexOf("Safari") != -1)
> {
>   window.location = "http://systemarchitects.net/index_dot.html";
> }
> else
> {
>   window.location = "http://systemarchitects.net/index.html";
> }
> </script>
> <!-- End redirect Safari-->
>
> I included the full URL so you can see what I am dealing with.
> This is the first redirect I have had to deal with and I am a better
> designer than coder. Any assistance is appreciated.
> Ken


Hi, sorry I missed the original post.

Personally I don't like this approach, Why don't you use one page and
use the JS to decide wether to show the SVG element or the other
version, have one as default?

I take it there is also some provision for nonJS as well?

ben
-- 
Ben Morrison



More information about the thelist mailing list