I want users to be redirected to a different webpage if they are using a PS3
here is the code I have been trying to use
<script language=javascript>
<!--
if ((navigator.userAgent.match(/iMozilla/i)) || (navigator.userAgent.match(/iPLAYSTATION 3/i))) {
location.replace("http://example.com");
}
-->
</script>
A list of the user agents for the PS3 can be found here http://www.useragentstring.com/pages/Playstation%203/
I cant seem to get it to work so what am I doing wrong?