yombull
03-18-2004, 07:12 PM
I created a script to navigate using the f keys, but I need it to include shift + F1 here and I could only figure out how to do this using only the F1 key. Can anyone show me how to make this script to where the user has to use shift + F1:
<script>
function handleKeyPress(evt) {
var nbr, chr;
if (window.Event) nbr = evt.which;
else nbr = event.keyCode;
//Opens Link with Shift-F1
if(nbr==112){document.location.href="pap09.html";}
else{return true;}
}
document.onkeydown= handleKeyPress
</script>
<script>
function handleKeyPress(evt) {
var nbr, chr;
if (window.Event) nbr = evt.which;
else nbr = event.keyCode;
//Opens Link with Shift-F1
if(nbr==112){document.location.href="pap09.html";}
else{return true;}
}
document.onkeydown= handleKeyPress
</script>