Hello Kushal,
Monday, October 29, 2001, 3:48:14 PM, you wrote:
KK> Hi All,
KK> Is there any way to prevent the tabbing focus go to address bar of the browser? By default, if one tabs after the last
element of the page, the focus goes to address bar. Is there anyway, I can
KK> prevent this to happen?
KK> Thanks in advance.
KK> Kushal
KK> CSC
KK> ---
KK>
KK>
if you know which of elements is last on your page you can try "to
catch" the event "onkeypress", cancel it and then give focus to the
first element on your page.....
e.g.
function catchKeyPressed()
{if (window.event.keyCode == 9)
{window.event.returnValue = false;
document.getElementById("firstElement").focus();
}
}
--
hope this helps,
Stas