codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Problem disabling the browser-help on F1 key press  soundarya_10 at 12:21 on Wednesday, November 08, 2006
 

In the following code in Internet Explorer I am trying to disable the browser-specific help and launch a pop-up window on F1 key press. The pop-up window alone launches when I press F1. If the pop-up window is now minimised and I press on F1 again, the pop-up window comes to focus. But if the pop-up window is on focus and I press F1 again, the browser-specific help is launched. How do I prevent this?

<script language = "javascript">
function dispHelp(){

var keyCode = event.keyCode;
if(keyCode == 112){

features="height=400,width=700,status=yes,location=no,top=200,left=200";
winId = window.open( "http://www.yahoo.com", 'appHelp', features );
winId.focus();
return false;
}

}

function disableDefault(){
event.returnValue = false;
return false;
}

</script>

<body onkeydown="dispHelp();" onhelp="disableDefault();">








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  How to place the blinking cursor in a particular position in a text box?
•  kjhkhgkkkkkkkkkkkkkkkkkkkkkkkkkkkk
•  kjhkhgkkkkkkkkkkkkkkkkkkkkkkkkkkkk
•  kjhkhgkkkkkkkkkkkkkkkkkkkkkkkkkkkk
•  Re: problem in servlet
•  Re: nhgjhgfjhgfjhg
•  Re: How to run ASP code on server automatically wrt date & time
•  Substring replacement problem... help pls!
•  Problem disabling the browser-help on F1 key press


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006