-
I'm sure this is as easy as pie, but I can't find how to make a new window a certain size. What I want is have a link open a new window that is 200x100 size. Anybody care to help me out? http://www.SitePoint.com/forums/smile.gif
------------------
J Andersen
-
Try this
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
<a href="javascript:window.open('file2open.html','PopUp', 'toolbar=no,status=no,width=200,height=100');">
[/code]
------------------
Wayne Luke - Sitepoint Moderator/Internet Media Developer
Digital Magician Studios - Making Magic with Web Applications
wluke@digitalmagician.com
-
Hmm... That works good for the pop-up part, but when you click the link, it opens the pop-up window and also directs the original browser to the javascript code.
I don't know how to explain it clearly, so I also took a screenshot of it.
jspopup.jpg
-
Nevermind, I got it working. Here's the fixed version.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre><a href="#" onClick="window.open('file2open.html','PopUp','toolbar=no,status=no,width=200,height=100')">[/code]
Thanks for your help! I appreciate it. http://www.SitePoint.com/forums/smile.gif
-
If you want scroll bars then put this coding in: ,scrollbars=yes
-
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by J_Andersen:
I'm sure this is as easy as pie, but I can't find how to make a new window a certain size. What I want is have a link open a new window that is 200x100 size. Anybody care to help me out? http://www.SitePoint.com/forums/smile.gif
<HR></BLOCKQUOTE>
Read the tutorials about this at: http://www.visicommedia.com/community/
------------------
Dominic Tremblay
AceHTML 4 Freeware
http://www.visicommedia.com
-
This is all very well but for the icing on the cake can anyone tell me me how to control where our new window pops up on the users moniter?
...Nevermind! I just discovered you can specify distance from top and left eg:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>"toolbar=no,menubar=no,location=no,scrollbars=no,width=450,height=100,top=600,left=400,resize=no"[/code]
[This message has been edited by Jules (edited June 29, 2000).]