Use these links to navigate the FAQ:

Javascript to force a browser window to a certain size and center itself

Javascript to close the browser window

All about PPT2HTML index page


Microsoft MVP Logo

Javascript to control presentation using keystrokes

Include the following Javascript in the HEAD section of your template.

Edit the key sections (or add new ones) as required to fit your needs.

In this example, pressing h will take us to whatever Home Page has been specified in Preferences, f goes to the PowerPoint FAQ page and n/p go to next/previous html pages respectively.

Keystrokes are not case-sensitive.


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! -->

<!-- Begin
var key = new Array();  // Define key launcher pages here
key['h'] = ":Prefs.HomePage:";
key['f'] = "";
key['n'] = ":Nav.Next:";
key['p'] = ":Nav.Previous:";

function getKey(keyStroke) {
// Cross-browser key capture routine couresty
// of Randy Bennett (
eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
which = String.fromCharCode(eventChooser).toLowerCase();
for (var i in key) if (which == i) window.location = key[i];
document.onkeypress = getKey;
//  End -->

[Previous] [Home] [Next]