Re: Customising the window size

by "Sue Bailey" <sue(at)bartandsue.co.uk>

 Date:  Thu, 6 Jul 2000 22:59:27 +0100
 To:  "Fox Rodgers" <b0rd0p(at)juno.com>,
<hwg-techniques(at)hwg.org>
 References:  juno
  todo: View Thread, Original
Fox, the format for window.open is

window.open(url, name, features)

So you need to change your code to

 function goWin(url)
 {
 newWin = window.open(url,'newWin',
'width=351,height=413,scrollbars=yes,menubar=yes');
 }

'menubars' or 'scrollbars' on their own don't make sense, so you're not even
getting as far as the size attributes. I think, anyway.

HTH,

Sue


----- Original Message -----
From: Fox Rodgers <b0rd0p(at)juno.com>
To: <hwg-techniques(at)hwg.org>
Sent: Thursday, July 06, 2000 9:03 PM
Subject: Customising the window size


> Hey coders,
>
> I think I'm gonna start a mailing list just for the writing and tweaking
> of pop-up windows, since I spend SO MUCH time (along with other list
> members) trying to customise my new and pop-up windows in HTML.
>
> I searched the archives for the perfect fit answer, but was unable to
> find anything. Here's my query:
>
> I've been trying to code a link that opens a new window of 351w and 413h.
>  I need it to contain JUST the scrollbar and menubar, nothing else.
> However, when I write it as follows (utilising Javascript):
>
> <SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
>  <!--
>
>
> function goWin(url)
> {
> newWin = window.open(url,'newWin', 'scrollbars','menubar',
> 'width=351,height=413');
> }
>
>
>  // -->
> </SCRIPT>
> </HEAD>
>
> balderdash, etc etc.
>
> <A HREF="javascript:goWin('newwindow.html');"
> onmouseover="window.status='Happy Birthday '; return true"
> onmouseout="window.status='And you smell like one too'; return true">
>
> I get a totally maximised window. Can't have that! So, what am I doing
> wrong and what do I need to correct my indiscreet window sizes??
>
> Any *PLEASANT* pointers are appreciated. Keep in mind I'm the perpetual
> beginner....
>
> Thanks,
> Jay
> Ps, I'll be happy with a NON-Javascript code too.
> ________________________________________________________________
> YOU'RE PAYING TOO MUCH FOR THE INTERNET!
> Juno now offers FREE Internet Access!
> Try it today - there's no risk!  For your FREE software, visit:
> http://dl.www.juno.com/get/tagj.

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