PDA

View Full Version : bring focus on button when arrow key is pressed


shikha
05-07-2003, 11:09 AM
hi friends,

i have made one dialog on which i made 3 button yes,no,cancel. Now i want that if i press arrow keys on them they will function.presently tab is working but not the arrow keys.
my code is

for (var i=2; i<strings.length; i++) {
document.write('<input type="button" value="'+strings[i]+'" onClick="window.returnValue='+(i-1)+'; window.close();">&nbsp;&nbsp;');




shikha