Javascript
-
Hi, I'm trying to create TD and TR elements in Javascript. Using document.createElement("tr") and document.createElement("td"); Also to catch mouse events i use, setAttribute("onmouseout", "this.className='mouseOver';"); How to handle ARROW KEY events like mouseover .Pls help. Thanks in Advance Ram
-
Hi, I'm trying to create TD and TR elements in Javascript. Using document.createElement("tr") and document.createElement("td"); Also to catch mouse events i use, setAttribute("onmouseout", "this.className='mouseOver';"); How to handle ARROW KEY events like mouseover .Pls help. Thanks in Advance Ram
setAttribute("onKeyDown","javascript:KeyDown();");
function KeyDown()
{
var whichKey = event.keyCode;
switch(whichKey)
{
case 37: /* Arrow left*/
case 38: /* Arrow up*/
case 39: /* Arrow right*/
case 40: /* Arrow down*/
}
}I hope that's what you're looking for... Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.