Open in a new window (Certian Size) (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Ziggyzaz -> Open in a new window (Certian Size) (7/28/2003 12:50:05)

I want to have a new window open when a link is clicked on but I only want this window to be a certian size. How can I do this




Gil -> RE: Open in a new window (Certian Size) (7/28/2003 12:58:38)

W/ Javascript - change the parameters till it' s the size you want.

<a href=" #" onClick=" MyWindow=window.open(' http://www.yoursite.com/index.html' ,' MyWindow' ,' toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=400,left=30,top=30' ); return false;" > Click here for more information</a>




Ziggyzaz -> RE: Open in a new window (Certian Size) (7/28/2003 13:07:21)

Where do i put the size i want?




Mike54 -> RE: Open in a new window (Certian Size) (7/28/2003 13:13:52)

[;)] Zig ' er scroll over to the right of Gils post. You' ll note attributes for width (700) and height (400). That would be in pixels BTW.




Ziggyzaz -> RE: Open in a new window (Certian Size) (7/28/2003 13:19:28)

Thanks, I looked for a scroll bar but didn' t see one, i guess i was just blind, I see it now thanks




Spooky -> RE: Open in a new window (Certian Size) (7/28/2003 17:53:22)

Also, check out the ' spawn' addition from www.jimcoaddins.com for creating windows.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625