RE: New Browser Window Link problem

by Kid Stevens <Kidstevens(at)comcast.net>

 Date:  Mon, 08 Jul 2002 17:59:19 -0600
 To:  hwg-techniques(at)mail.hwg.org
 References:  dell2
  todo: View Thread, Original
That is very clean code.  It passes the Java engine tests I run for
compatibility reasons.

As the words of John Woram fell from above I was tickled at 7:19 PM -0400
on 7/8/02:
>I sent a few suggestions earlier about how to open a maxed window, but
>by accident it went to Jeremy only. But having seen the other
>responses, I'm going to toss in my 2-cents worth.
>
>First, I don't think opening a new window "breaks" the Back (history)
>button -- it's a new window -- it doesn't *have* any history. If the
>new window contains a link to another page, then the Back button will
>work on that page, and all subsequent pages. IOW, it's not broken.
>
>Next, the question was about how to open a new window at maximum size,
>not "Is it a good idea to open a new window?" The answer to the last
>question is "It depends." If there's a good reason to open a new
>window, you can provide the means to close it again. Or whatever. So,
>here's a few ways to open a maximized window:
>
>1.
>function maxSize()
>{
>maxWindow=window.open('FILENAME.HTM');
>maxWindow.moveTo(0,0);
>maxWindow.resizeTo(screen.width, screen.height);
>}
>
>2.
>function maxSize()
>{
>maxWindow=window.open('FILENAME.HTM'), "", "fullscreen=yes");
>}
>
>The first one opens a maxed window with the menu bars, etc. at the
>top. The second one fills the entire screen. Replace 'FILENAME.HTM'
>with the name of the file you want to open.
>
> Or,
>
>3. Put these lines into the JavaScript section in the head of the file
>you want to open:
>
>window.moveTo(0,0);
>window.resizeTo(screen.width, screen.height);
>
>In this case, the back button works fine.
>
>John Woram

-- 
Sincerely,
Kid Stevens

"A democracy is a sheep and two wolves deciding on what to have for lunch.
Freedom is a well armed sheep contesting the results of the decision."
 - Benjamin Franklin

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA