Changes

402 bytes added ,  20:46, 8 June 2011
adding tips
Line 48: Line 48:  
  <input type="file" />
 
  <input type="file" />
 
* HTML5Test.com say that Drag and drop is supported but it's not (code on WebKit is ready, but it's not implemented on interface of browser)
 
* HTML5Test.com say that Drag and drop is supported but it's not (code on WebKit is ready, but it's not implemented on interface of browser)
 +
 +
==Tips==
 +
 +
=== Detect User Agent ===
 +
 +
To detect if the user agent is Nintendo 3DS Browser :
 +
 +
<script type="text/javascript">
 +
      window.onload=function()
 +
      {
 +
          if (navigator.userAgent.indexOf('Nintendo 3DS') == -1) //If the UserAgent is not "Nintendo 3DS"
 +
          {
 +
                location.replace('http://www.3dbrew.org'); //Redirect to an other page
 +
          }
 +
      }
 +
</script>
17

edits