question about opening a new window, not what you think.
Posted: Mon Feb 08, 2010 10:21 pm
I'm looking to have a link called 'watch'
when you click the link, a new page would open displaying a video
the video is actaully a row in the database $row['video_loc']
i have the script to display the video on the same page right now. I would love for the video to open in a new window. I have been struggling for days now. Can anyone help me out? oh yeh, the new window is named showvideo.php.... Here is what I have come up with, but no luck yet
when you click the link, a new page would open displaying a video
the video is actaully a row in the database $row['video_loc']
i have the script to display the video on the same page right now. I would love for the video to open in a new window. I have been struggling for days now. Can anyone help me out? oh yeh, the new window is named showvideo.php.... Here is what I have come up with, but no luck yet
Code: Select all
echo '<a href="{Watch}"onClick="window.open("showvideo.php?loc={$row["video_loc"]}","window_name","width=900");return false\">$row["video_loc"]</a>';