Javascript code for stoping the key handler

//Javascript code for stoping the key handler


function StopKeyHandler()
{

if(window.event.keyCode==116)
{

alert(window.event.keyCode);

window.event.cancelBubble=true;
window.event.keyCode=0;
window.event.returnValue=false;

return false;
}
else if(window.event && (window.event.keyCode==8
|| window.event.keyCode==116 )
&& window.event.srcElement.tagName!='INPUT'
&& window.event.srcElement.tagName!='SELECT' )
{

window.event.cancelBubble=true;
window.event.returnValue=false;
window.event.keyCode=0;

return false;

}

}


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: