Forum Moderators: open

Message Too Old, No Replies

Is There A Way...

to control how new window opens?

         

austtr

11:25 pm on Sep 25, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is often necessary when linking to another site to have that site appear in a new window on top of the original page (ie... using the target="_blank" syntax in the link)

But is there a way to control the size and location of the new window when it opens?

tedster

3:43 am on Sep 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not when you use target="_blank". Then it's up to the browser, and some browsers will open full screen if the original window is full screen, some will open to the size of the previous normal size window, and there's no handle at all on the screen position.

However, using javascript instead of target="_blank", you can have the control you're asking about - then it's like any pop-up window.

austtr

4:22 am on Sep 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Tedster..... I've been using the javscript pop-up for some time for enlarging thumbnails and running slideshows. Did not make the connection that it could be also used for a linked URL.

Some days you begin to wonder just when you last used your brain... and is it still where you left it?

regards

bobriggs

4:37 am on Sep 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Semi-on subject semi-off, but now with Moz1.1 and tabbed browsing, does anybody know of a way to open in a new tabbed window?

Seems obvious that this will require some kind of javascript to determine whether the user has tabs on or off. IF they do, they probably would like a new tabbed window if possible. Something like target="_newtab". I know IE wouldn't do it, but maybe something for the NS6+ or Moz crowd.

Any thoughts?

keyplyr

5:36 am on Sep 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




This link [webreference.com] may help.