I have not had much luck with this and this is my first post. I want to make F1-F12 naviagte to webpages I determine, disabling there normal use. This is for an intranet training application that will be used by a small group. Losing the original function is not a big deal. Here is an example of what I found, but it is for A-Z and I need F1-F12.
<Html>
<HEAD>
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
var key = new Array(); // Define key launcher pages here
key[‘h’] = “
key[‘f’] = “
key[‘n’] = “
key[‘s’] = “
function getKey(keyStroke) {
isNetscape=(document.layers);
// Cross-browser key capture routine couresty
// of Randy Bennett (
eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
which = String.fromCharCode(eventChooser).toLowerCase();
for (var i in key) if (which == i) window.location = key[i];
}
document.onkeypress = getKey;
// End –>
</script>
</HEAD>
<body>
<table border=0>
<tr>
<td> Press ‘h’ for: Yahoo!<br>
<br>
Press ‘f’ for: MSN<br>
<br>
Press ‘n’ for: Google<br>
<br>
Press ‘s’ for: NFL<br>
<br>
</td>
</tr>
</table>
</html>
Thanks
Eric