Hi Pahtzer,
I tried this but it doesn't seem to change anything. The page still opens in a new tab, not a new window. I tried it in Firefox. Any other ideas?
Main Topics
Browse All TopicsI would like to link to several videos from the main pages of my website. I have the code set to open the new page (with the video) as target="blank" and then I use body onload to resize the new window to the size of the video. My goal is to have the main page visible in the background while someone watches the video. However, if someone's browser settings are set to always open a new tab (not new window), then a new tab opens and the whole browser gets resized instead of just the video window. Is there any better way to do this? I'm not very familiar with java script, so I'd like to keep the programming in html. Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I've heard that if you set dimensions for the new window it won't open in a tab.
Two things I'd like to add though.
1) It's more user friendly to use a script like Lightbox: http://www.huddletogether.
2) It's best to avoid using event handler attributes when you can.
Kravimir,
I do like the solution you suggest under 1. and it doesn't seem too complicated, although it is in js. However, I noticed at the bottom of the page that this script only applies to photos not videos. Is there a modification available that would apply to videos? Also, is there a way to modify the js, so that I don't have to put it in the header of the page but somewhere in the body code on respective pages? Thanks!
Oh, right. Check this one out: http://videobox-lb.sourcef
It gives the same instruction about where to put the <script> elements, but I suggest you try putting them wherever you feel like it and see if it still works.
Business Accounts
Answer for Membership
by: PhatzerPosted on 2009-04-11 at 14:20:32ID: 24123541
The only way I can see of doing it in a new window is to make an A tag as below:
The below method should work for browsers, which do not support javascript too.
Select allOpen in new window