hi
I want to direct Mac users who visit my site
to a special Mac-friendly URL.
I found a Javascript that does it well but it forces me
to redirect the Win users too:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
page = ((navigator.platform.indexOf('Win') > -1) ? "winredirect.htm" : "http://www.macredirect.com");
window.location=page;
// End -->
</script>
How do I revise this script so the Win users will remain
in the page where this script is (index.htm) and won't
be redirected while the Mac users will be redirected?
If I replace the winredirect.htm with index.htm or
http://www.mysitename.com
It doesn't work and the page doesn't load.
So how do I redirect only the Mac users???
Thanks for your time...
Yoga
I want to direct Mac users who visit my site
to a special Mac-friendly URL.
I found a Javascript that does it well but it forces me
to redirect the Win users too:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
page = ((navigator.platform.indexOf('Win') > -1) ? "winredirect.htm" : "http://www.macredirect.com");
window.location=page;
// End -->
</script>
How do I revise this script so the Win users will remain
in the page where this script is (index.htm) and won't
be redirected while the Mac users will be redirected?
If I replace the winredirect.htm with index.htm or
http://www.mysitename.com
It doesn't work and the page doesn't load.
So how do I redirect only the Mac users???
Thanks for your time...
Yoga