Hi
<script type="text/javascript">
document.onkeyup = KeyCheck;
function KeyCheck(e)
{
var KeyID = (window.event) ? event.keyCode : e.keyCode;
switch(KeyID)
{
case 116: {
event.keyCode = 0;
event.returnValue = false;
document.forms['myForm'].submit();
break;
}
case 16:
window.location ="http://www.yahoo.com";
break;
}
}
Hear I cant get case 116 which is F5 Refresh keycode ....other than
functionkey code are ok like 16 of shift button ....
Also
document.forms['myForm'].submit();
is seems not working it says error myForm Dosent have submit attribute ..
--
View this message in context:
http://www.nabble.com/F5-Keycode-is-not-available-in-javascript-tf4471972.html#a12750800
Sent from the MyFaces - Users mailing list archive at Nabble.com.