Nintendo DSi Browser: Difference between revisions
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
*Opera/9.50 (Nintendo DSi; Opera/483; U; en-US) | *Opera/9.50 (Nintendo DSi; Opera/483; U; en-US) | ||
*Opera/9.50 (Nintendo DSi; Opera/483; U; en-GB) | *Opera/9.50 (Nintendo DSi; Opera/483; U; en-GB) | ||
== Tips == | |||
* To active the vertical mode automatically, add this tag between <head></head> : | |||
<meta name="viewport" content="width=240"> | |||
* To detect if the user agent is Nintendo DSi Browser : | |||
<script type="text/javascript"> | |||
window.onload=function() | |||
{ | |||
if (navigator.userAgent.indexOf("Nintendo DSi") == -1) | |||
{ | |||
location.replace("http://www.dsibreworg); | |||
} | |||
} | |||
</script> | |||