New Window


#1

How can I open a new window or popup window.

I have a number of video files of my family and i would like it to open in a new window from a link

what is it i need ie

newwindow.php?file_name

or javascript

which is the best and how can I do it


#2

Probably the simplest way would be to have the ANCHOR do it.

<a href=http://example.com/openpage.php?file=filename target=_BLANK>Some File</a>

When the user clicks on the link then it will open up in a new window (It’s the target=_BLANK. However if a Popup blocker is on, it may prevent this.

PHP by it self will not do it. You would have to have php echo some html or javascript (or similar) to launch the new window.


#3

I think I’d have to go with the javascript as some of the videos are quicktime some are realtime and some are wmf.

As I have no idea how to script I realy need some help on this one.


#4

this maybe will help(javascript)

place into the header of the file where the link is–

usual link–

Your link here