futrose Posted January 20, 2012 Share Posted January 20, 2012 I have these links where the value of $id is pulled from my database, <a href='javascript: window.document.Vids<?php echo $id; ?>.submit();'>Watch</a> and I would like it to open the video in a separate window. Any idea how to make that happen? Thanks Quote Link to comment Share on other sites More sharing options...
joe92 Posted January 20, 2012 Share Posted January 20, 2012 Try this Quote Link to comment Share on other sites More sharing options...
UrbanDweller Posted January 21, 2012 Share Posted January 21, 2012 Check out this w3schools reference. http://www.w3schools.com/jsref/met_win_open.asp Quote Link to comment Share on other sites More sharing options...
Amit20 Posted January 21, 2012 Share Posted January 21, 2012 Use 'target' attribute of anchor tag. <a href="#" target="_blank" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.