Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Open JavaScript</strong></p> <p><a href="http://www.openjs.com/scripts/events/keyboard_shortcuts/" rel="noreferrer">http://www.openjs.com/scripts/events/keyboard_shortcuts/</a></p> <p>For certain keys (F1, F4), you have to open a new browser window without the address bar.</p> <p><strong>Example</strong></p> <p>Open a new window, without adornments:</p> <pre> window.open( 'webpage.html', 'TLA', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=665' ); </pre> <p>JavaScript to use the library:</p> <pre><code>var FALSE_FUNCTION = new Function( "return false" ); /** * Called to disable F1, F3, and F5. */ function disableShortcuts() { // Disable online help (the F1 key). // document.onhelp = FALSE_FUNCTION; window.onhelp = FALSE_FUNCTION; // Disable the F1, F3 and F5 keys. Without this, browsers that have these // function keys assigned to a specific behaviour (i.e., opening a search // tab, or refreshing the page) will continue to execute that behaviour. // document.onkeydown = function disableKeys() { // Disable F1, F3 and F5 (112, 114 and 116, respectively). // if( typeof event != 'undefined' ) { if( (event.keyCode == 112) || (event.keyCode == 114) || (event.keyCode == 116) ) { event.keyCode = 0; return false; } } }; // For good measure, assign F1, F3, and F5 to functions that do nothing. // shortcut.add( "f1", FALSE_FUNCTION ); shortcut.add( "f3", FALSE_FUNCTION ); shortcut.add( "f5", FALSE_FUNCTION ); } </code></pre> <p>Inside <code>webpage.html</code>:</p> <pre><code>&lt;body onload="disableShortcuts();"&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload