Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: incrediBILL
Is their a way that I can make a sized, new window open when a user clicks a link that is friendly to the pop-up blockers?
Thanks for your help
User Selected, Sized Pop-Up Window
Isn't this an oxymoron? Why would a user who's blocking pop-up windows select one? There is so much abuse of pop-ups people have their browsers set to prevent you from doing this. They could set them to allow it, but that would make surfing miserable. Forcing your visitors do something they don't want isn't a good way to make friends.
For instance, Mozilla Firefox let's you turn pop-ups on or off 'per site' and not 'all or nothing'.
Just a thought.
Since it's a user initiated window I hoped there was an easy way to open a small window.
I know I could do it having them link to a new page, but I would then probably have to develop page content for that video. (The content is already on the main page with the option to select which quality video you want to watch, which opens the pop-up window.)
target="_blank" works, but some of the video clips are small & look funny on such a large blank page.
I know SP2 allows for new pop-up windows if they are user initiated, so I figure their must be a way to it, just don't know what that is yet.
I know SP2 allows for new pop-up windows if they are user initiated . . .
First, define your popup() function in the head or an external js file. Then:
<a href="page.html" onclick="popup('page.html');return false;")>link text</a>
I stopped using target="_blank" because it is not valid in strict [x]html - but you could also add that attribute if you are writing transitional mark-up.