Sagewire Logo

F1 key to go to a link

4 Message(s) by 4 Author(s) originally posted in javascript programming


From: Sue Date:   Friday, October 26, 2007
Hi,

I'm new to JAVAscript and what I want to do is when user press F1 key,
it'll show the help page. Can anyone show me the JAVAscript code .
The link of the help page is help/work/Default_CSH.htm#message Bar
Thanks.


From: Evertjan. Date:   Friday, October 26, 2007
wrote in message on 26 okt 2007 in comp.lang.JAVAscript:
I'm new to JAVAscript and what I want to do is when user press F1 key,
it'll show the help page. Can anyone show me the JAVAscript code.
The link of the help page is help/work/Default_CSH.htm#messageBar
Thanks.



Seems you are new to this NG to, as this was discussed some time ago.

It is impossible with clientside JAVAscript on a browser .

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


From: Thomas PointedEars Lahn Date:   Friday, October 26, 2007
wrote in message:
[...] what I want to do is when user press F1 key, it'll show the
help page.



It already does show the help page ... of the browser. And that is good so.

Can anyone show me the JAVAscript code.



You do not need any code for that, let alone "JAVAscript" code.

The link of the help page is help/work/Default_CSH.htm#messageBar



Include an <a ... accesskey="h">Help</help> or something like that instead.
Users do not take kindly on their browser being broken by authors who think
they know better.PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee


From: David Mark Date:   Saturday, October 27, 2007
wrote in message:
Hi,
I'm new to JAVAscript and what I want to do is when user press F1 key,
it'll show the help page. Can anyone show me the JAVAscript code.
The link of the help page is help/work/Default_CSH.htm#messageBar
Thanks.



It is not a good idea, but this works in most browsers:

this.onload = function() {
var doc = this.document;
if (!doc) { return; }
doc.onhelp = function() { window.open('help/work/
Default_CSH.htm#messageBar'); return false; };
doc.onkeydown = function(e) { if (e && e.which == 112)
{ window.open('help/work/Default_CSH.htm#messageBar'); return
false; } };
doc = null;
};

Normally onkeyup'd be the appropriate event, but to prevent the
browser's help window from opening, you've to use onkeydown (or
onhelp for IE.) Opera will navigate to its help page in any event,
just as it'll always show its default context menu.



Next Message: getting date/time from JAVAscript


Blogs related to F1 key to go to a link

ok it definately php was the splash screen one thing Im concerned ...
what was the command to go to console if I should freeze again? I seen it earlier but forgot to write it down. the TS i did but i have a hard time installing it on here. cntrl alt something. f1. Optimus55, java is a problem in and of ...

[gujjuchaps-ahmedabad] Digest Number 3067
Help Menu Key Action F1 Contents Other Shortcuts Key Action Page Up/Down Move view up/down 1 screen. SHIFT + Page Up/Down Nudge view up/down. CTRL + Page Up/Down Move view left/right 1 screen. CTRL + SHIFT + Page Up/Down Nudge screen ...

Top 50 Windows XP Tips
the "F1" key will still respond to your call. When you uncover any other nifty tweaks in this applet, we'd love to hear about 'em. Show Deleted Files This tip, while relatively remedial, serves as a good reminder for everyone. You don't ...

Mozila
Full note: http://digg.com/ Mozilla Firefox Download List of F1-F9 Key Commands for the Command Prompt F1 / right arrow: Repeats the letters of the last command line, one by one. F2: Displays a dialog asking user to enter the char to ...

very disappointed in host the whole launchpad experience just ...
Yup, no go.. Link about exploit: http://cve.mitre.org/cgi-bin/cvename.cgi?name=2007-2721 I’m not sure if and how it affects ubuntu, but it requires an ubuntu update. anyone knows why WPA is not an option on the wireless configuration? ...

folks nvidias twinview imagemagick was working great until i ran ...
Henk, use “apt-cache java plugin” must be one of those. astro76, how would I go about determining whether my windows install is on hd0 or hd1? Okay, how do I fix my registry for direct -X I’m get@t#iing SS%%tra^^nge ploblem. ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional