Want Link to Open MAXIMIZED in New Window

J

John R. Baker

I have a series of hyperlinks on a page, and want them all to open in a new
window. (That part is easy!)

But, is there a way I can force the new page that opens to be MAXIMIZED
instead of "restored" size?

Thanks!

- John R. Baker
 
D

David Baxter

Don't do it... this is another in a long list of things that certain
sites do to annoy visitors. Let the visitor decide how big s/he wants
the new window to be... and where it is going to appear on the screen.
 
C

Cheryl Wise

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.
 
J

John R. Baker

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
 
S

Stefan B Rusynko

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]
| >
| >
|
|
 
J

John R. Baker

Stefan,

Thanks! I'll give it a try. I knew how to give the screen a "hardwired"
size, but didn't know how to handle the unknown "so, what is HIS max screen
resolution" condition.

- John R. Baker
 
D

Dennis Kowallek

I would like a window to open up with a specific size. But how do I get rid of
the menu bar, favorites, etc.?
 
T

Thomas A. Rowe

Requires JavaScript to create the new windows and load full screen based on the user resolution.

In IE address bar do a search for:

? JavaScript Popup Window Scripts

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top