Changes

250 bytes removed ,  08:17, 3 June 2012
m
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 ===
10

edits