thewhistler1
Technical User
Hello all
I have an issue getting this to work in firefox, it seems to work fine in other browsers but firefox gives an error window.event is undefined when I try to use this. Any ideas?
I have an issue getting this to work in firefox, it seems to work fine in other browsers but firefox gives an error window.event is undefined when I try to use this. Any ideas?
Code:
<script>
document.onkeydown=function(evt) {
var thelink
if (window.event.keyCode==37) thelink='cb_prev'
else if (window.event.keyCode==39) thelink='cb_next'
else return
document.getElementsByName(thelink)[0].onclick()
}
</script>