Forum Moderators: mack

Message Too Old, No Replies

Open a new window in html

How to open a link in a smaller new window

         

contentmaster

12:30 pm on Jul 11, 2003 (gmt 0)

10+ Year Member



Hi!
I have made a page in frontpage. There is a link in it (some text) and on clicking it i want a smaller new window to open with the linked page.........my question is how to specify dimensions of the smaller page that would open in html? I know that using java script its possible but what about simple html? Also can i mention scrollbars.......if i need them ...........
Please help!

claus

12:44 pm on Jul 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to do this with html only you can not control the size of the new window. Anyway, it's easy to open it:

<a href="somewhere" target="_blank">somewhere</a>

-it's the target-part that does the trick. Here's a quick and easy one-page tutorial [javascript.about.com] for the javascript part (controlling size and toolbars).

/claus

mivox

5:19 pm on Jul 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've moved this thread here from the Graphics forum, since it's not really graphics-related but is definitely a frequent question among newer web developers. :)

As claus mentioned, just opening a new window is pretty simple, but if you want to control the size and attributes of the window you'll need to employ some simple javascript to do it. I'm sure a few of our members can suggest different approaches to setting up the scripting for it.

Best of luck with your site design!

contentmaster

5:30 pm on Jul 12, 2003 (gmt 0)

10+ Year Member



Hi mivox
by the way i didn't realize that was the wrong section...i hope to get some good tips!
Thanks