You can either put the following script in the head section of your htm page.
The window will reposition and resize to fill the full screen area.
<script language="JavaScript1.2"><!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//--> </script>
Or add to the body tag (below all on 1 line)
<body onLoad="if (document.all || document.layers) { self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight)">
| David and Cheryl,
|
| I share your sentiments. I agree completely.
|
| But, let me explain a little more why I want to open a new window that is
| "maximized"...
|
| The project is NOT for the WWW, but rather a CD-based presentation for a
| captive audience. In this case, a factory that manufactures paint has asked
| me to prepare an "Emergency Response" CD for use by the fire department in
| the city where the factory is located. The CD contains several dozen PDF
| files of AutoCAD drawing plots.
|
| Each of the PDF files shows a view of interest to the fire department in
| case of emergency. It might be a floor plan, location of emergency exits,
| gas and electricity shut-offs, map of the whole facility, etc.
|
| There is ONE "html" page that is a "table of contents" of all of the PDF
| files on the CD, including a description of the drawing contents, and a
| hyperlink to that (PDF) drawing.
|
| In an emergency situation, the fire dept. will respond with their emergency
| vehicles. Inside each vehicle is a laptop computer with the CD-based
| presentation.
|
| If, for example, there is a fire in the R&D building, they will look at the
| "table of contents" html page, and then click on the appropriate PDF
| "drawing". That drawing will then, hopefully, open as a new "maximized"
| window.
|
| I hope this explains why I want to violate normally "good neighbor" rules
| and override certain browser settings.
|
| - John R. Baker
|
|
|
|
| | > I couldn't help but share this article on evolt.org on what and what not
| to
| > do on a website since it relates to changing the visitor's browser
| settings.
| >
| >
http://www.evolt.org/userroar/
| >
| > Course the person who wrote it echoes my sentiments on web site usability
| so
| > I can't help but be prejudiced in favor of what he writes.
| >
| > --
| > Cheryl D. Wise
| > MS-MVP-FrontPage
| >
[email protected]
| >
| >
|
|