Menu:

Links:

Use these links to navigate the FAQ:

Next:
CSS to control the bullet style in bulleted lists

Previous:
Javascript to control presentation using keystrokes

All about PPT2HTML index page

Updated
7/25/2016

Microsoft MVP Logo

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

Thanks to Gus C in the PowerPoint newsgroup for this trick:

To force a browser window to open at a certain size and center itself on the screen, add this to your HTML (template). Substitute the values you want for width and height.

<script Language="JavaScript">
var width=678;
var height=500;
self.moveTo((screen.availwidth-width)/2,(screen.availheight-height)/2);
self.resizeTo(width,height);
</script>

[Previous] [Home] [Next]