Nintendo DSi Browser: Difference between revisions
| Line 20: | Line 20: | ||
window.onload=function() | window.onload=function() | ||
{ | { | ||
if (navigator.userAgent.indexOf( | if (navigator.userAgent.indexOf('Nintendo DSi') == -1) //If the UserAgent is not "Nintendo DSi" | ||
{ | { | ||
location.replace( | location.replace('http://www.dsibrew.org'); //Redirect to an other page | ||
} | } | ||
} | } | ||
</script> | </script> | ||