Hello, guys
I am developing a website for nintendo wii which uses "opera" any ways what i want is that while surfing any website on wii we use "wii control".. So, the control have up/down/right/left keys on it I want those keys to behave like TAB because when you press up/down/right/left keys it scrolls the page..
Note!!! With the TAB i doesnot mean to TAB in the inputfields or text areas... I want to use the tab as we use on our PC's the tab button while we are not using our mouse
I was wondering if i can get a javascript to say something like strat TAB instead of scroll..
document.onkeypress = function(e) {
if (e.keyCode == 175 || e.keyCode == 176 || e.keyCode == 178 || e.keyCode == 177)
alert("pressing keys");
return true;
else if (e.keyCode == 170 || e.keyCode == 174) {
return false;
}
};
Thanks!!