Opening page in a new window

liunx

Guest
Afternoon all... <br />
<br />
A quick quesion. I would like to set up a link that opens a new window.. (I know, use target="_blank") but I want the window to be a particular size without any toolbars, etc.<br />
<br />
It's a set up for a webcam... the pic being uploaded is 320 X 240. I'm sure this is a fairly simple one... I just haven't found the answer yet.<br />
<br />
Thanks!<br />
Wildlife<!--content-->you can do this easily with javascript<br />
<br />
have a look around <!-- w --><a class="postlink" href="http://www.a1javascripts.com">www.a1javascripts.com</a><!-- w --> <br />
<br />
:)<!--content-->use window.open (URL, windowName[, windowFeatures])<br />
<br />
where windowName lets you assign a name that can be used by the TARGET attribute.<br />
<br />
windowFeatures parameter is a single string consisting of a comma delimited list (without spaces between items) of attributes:<br />
<br />
eg.<br />
<br />
newWindow = window.open("newWindow.html","subWindow","statusbar,menubar,HEIGHT=400,WIDTH=300)<br />
<br />
you can use this in a link such as:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"javacript.void[0]" onClick="window.open("newWindow.html","subWindow","statusbar,menubar,HEIGHT=400,WIDTH=300)">LINK</a><br />
<br />
The list of attributes includes:<br />
<br />
location, menubar, resizeable, scrollbars, status, titlebar, toolbar, width, height. Check out a Javascript DOM to see all the parameters - there are around 15.<br />
<br />
Cheers,<br />
<br />
- Tatlar<br />
<br />
PS. Thanks to Scoutt who actually told me this answer back in January 2002....<!--content-->window.open("newWindow.html","subWindow","statusbar,menubar,HEIGHT=400,WIDTH=300)<br />
Um, you forgot some important tags:<br />
window.open("newWindow.html","subWindow","statusbar,menubar,HEIGHT=400,WIDTH=300"); <br />
<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"javacript.void[0]" onClick="window.open("newWindow.html","subWindow","statusbar,menubar,HEIGHT=400,WIDTH=300)">LINK</a>Always close your javascript :D <br />
<a href=http://www.htmlforums.com/archive/index.php/"javacript.void[0]" onClick="window.open("newWindow.html","subWindow","statusbar,menubar,HEIGHT=400,WIDTH=300");">LINK</a><br />
It is also not good to you " inside of ":<br />
<a href=http://www.htmlforums.com/archive/index.php/"javacript.void[0]" onClick="window.open('newWindow.html','subWindow','statusbar,menubar,HEIGHT=400,WIDTH=300');">LINK</a><!--content-->Thanks for pointing that out Billy - I was running late for a meeting and was trying to be quick. My hen-pecking excuse for typing always fails me at the most inopportune times.<br />
<br />
:))<br />
<br />
Cheers,<br />
<br />
- Tatlar<!--content-->
 
Back
Top