hwg-basics archives | Jul 2002 | new search | results | previous | next |
Re: Opening 2nd Windowby "Martin Clifford" <MLC1(at)nrc.gov> |
|
You would have to look into JavaScript to be able to control those kinds = of features in the new window. Put this in your <head></head> section: <script language=3D"JavaScript" type=3D"text/js"> <!-- function openWin(url) { var height =3D x; // set the height by replacing x var width =3D y; // set the width by replacing y newWin =3D window.open(url, "newWin", "height=3D" + height + ",width=3D= " + width); } //--> </script> Put this as your link: <a href=3D"#" onclick=3D"openWin("index.htm"); return false;">Go To</a> HTH Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Ray Henderson" <Ray.Henderson(at)earthlink.net> 07/24/02 12:29PM >>> Hi all I'd like to open a 2nd widnow using something like: <.a href=3D"http://url-goes-here" Target=3D"window-2">Go To</a> The above code does open a 2nd window for the link=20 but I'm not sure how to control the size of the new window. =20 Can that be done?? Anybody know the heck do you do it?? =20 TIA Ray=20
HTML Guild: hwg-basics mailing list archives, maintained by Web Professionals @ IWA