changable window size using Javascript

by "Rajnish Bhaskar" <9705228b(at)student.gla.ac.uk>

 Date:  Sun, 28 May 2000 15:28:26 +0100
 To:  hwg-basics(at)mail.hwg.org
  todo: View Thread, Original
Hi all,
	Could someone please take a look at my Javascript file at: 
http://www.gla.ac.uk/Clubs/WebSoc/~9705228b/scripts.js and look at 
the very first function (called openDetails()  ).  This opens a smaller 
window with the filename and window name given as parameters.  In the 
online version, I have hardcoded the window size into the function, but I've 
been playing about with it trying to be able to set the size with 
parameters.  So far, what I have is this:

function openDetails(file, theName, wid, hei) {
    dwWindow=window.open(file,theName,      
'width=wid,height=hei,toolbar=no,scrollbars=yes,location=no');

and in the HREF tag, I have: 
HREF="javascript:openDetails('disc.html','DWBooks',620,380)"

but it opens the window full sized.  This code seems to work fine in IE 
(5.01), but not in Netscape (3 and 4.73) or Opera (3.60)
If anybody could help here, I'd be eternally grateful :o).

Also, could someone tell me the code for positioning a window with 
Javascript?

Cheers and TIA,
Raj.
------------------------------------------------------------------
__        __
|   |	|   |   Rajnish Bhaskar, University of Glasgow
|_ / 	|_ /   E-Mail: rajy(at)i.am
|   \	|   \   Home Page: http://i.am/rajy
|    \	|__/   
Arms alone are not enough to keep the peace
it must be kept by men.
	 -- John Fitzgerald Kennedy, 1962

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.