hie
i cant get it 2 work for tab key, but here is how 2 capture keypress & knowout what key was pressed (tab keykode=9)
<script>
function tabgo(e){
var key=event.keyCode
if (key==32) alert('space')
}
document.onkeyup=tabgo
</script>
& there u can set whatever action (history.forward() in ur case)
but it looks like i'm goin the wrong way.. regards, vic
if i have a frameset... do i need to select a frame first before executing the script? or can i avoid that? i just want to be able to press tab when I first enter the frameset.
I am using pepperpepsi code for capturing tab key... how do I make sure that when the user presses any other key other than the tab key, it will take them to a different location?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.