Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help key

Status
Not open for further replies.

sefafo

Programmer
Aug 28, 2003
36
CO
Hello, do you know if there is any way of calling an html page pression the F1 key, as a help page??

Thanks a lot!!!!
 
Sure, that's what the [tt]onhelp[/tt] event is made for:
Code:
<html>
<head>
<script>
 var helpwindow;
 function handleHelp(){
  if(helpwindow){
   if(helpwindow.closed){
    helpwindow = window.open('xmlwflowdisplay.html');
   }
   else{
    helpwindow.focus();
   }
  }
  else{
   helpwindow = window.open('myHelpPage.html');
  }
  return false;
 }
</script>
</head>
<body onhelp=&quot;return handleHelp();&quot;>
Some Stuff Here:
</body>
</html>

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Works Very Good!!!!

Thanks a lot!!!!!
 
Ah, that's handy, but restricted to later versions of IE:

Is there any cross-browser solution to &quot;help&quot; via f1? I suppose a help button isn't out of the question...

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Ahh Ed, always the soothing cross-browser yin to my rampaging IE only yang.

A button or link would be the best solution. Allowing those using lesser browsers to view the help. You could still use the onhelp event to support the more feature rich clients.
;-)

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
I think I like &quot;Help&quot; buttons. The funny thing about help is that I expect &quot;Help&quot; buttons to help me with that which the browser displays -- in other words, the site. I expect the &quot;f1&quot; key to help me with the browser.

So, speaking from a program-expectations point of view, it might make more sense to use a &quot;help&quot; button or &quot;help&quot; link.

See, now I'm being a deconstructist!

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Agreed. Using the F1 key for any other purpose than to display browser-related help breaks a standard piece of functionality we expect in all applications.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Just have to cut in with an OT comment :)

dwarfthrower
Allowing those using lesser browsers to view the help. You could still use the onhelp event to support the more feature rich clients

I think you're confusing being feature-rich with being a 'better' browser. No doubt some of the features in IE could be useful - but I'd rather they focused their talent on getting more web standards (number 1 on that list: CSS) working in IE than adding more and more whistles and bells (that ONLY work in IE).
Would you like a new car with 'better' wheels that only work on roads built to handle them, but still doesn't have a working indicator?

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
;-) Always get a bite with that one. Tongue was firmly planted in cheek (as usual). No offence to the lesser browsers intended ;-)

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Oh, I thought it was just a typo and that he meant &quot;feature-bitch&quot;. [lol]

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top