Line 88:
Line 88:
=== Detect User Agent ===
=== Detect User Agent ===
β
To detect if the user agent is Nintendo DSi Browser :
To detect if the user agent is Nintendo DSi Browser :
β
<script type="text/javascript">
<script type="text/javascript">
β
window.onload=function()
+
window.onload=function
β
{
β
if (navigator.userAgent.indexOf('Nintendo DSi') == -1) //If the UserAgent is not "Nintendo DSi"
β
{
β
location.replace('http://www.dsibrew.org'); //Redirect to an other page
β
}
β
}
β
</script>
=== Key Codes ===
=== Key Codes ===