blacktiger786 Posted October 27, 2013 Share Posted October 27, 2013 i have two pages 1 is simple and second poup window page.. on 1 page i have a variable which hava a link like this <?php $link='<a href="http://www.example.com/trailer.flv">download</a><br>'; $link1='<a href="http://www.example.com/trailer2.flv">download</a><br>'; $link2='<a href="http://www.example.com/trailer3.flv">download</a><br>'; $link3='<a href="http://www.example.com/trailer4.flv">download</a><br>'; echo $link,$link1,$link2,$link3; ?> when i click on any download its give download link .but i want when i click on download its open a popup window and in popup window have download link where its give me download link.. which get or reffer from first page.. another think i mentioned that in first page 4 links and its all different url and name download same.. Quote Link to comment Share on other sites More sharing options...
phat_hip_prog Posted October 27, 2013 Share Posted October 27, 2013 using html add the target attribute http://www.w3schools.com/html/html_links.asp Quote Link to comment Share on other sites More sharing options...
blacktiger786 Posted October 27, 2013 Author Share Posted October 27, 2013 its not target link i want open different window where show button download when i click on it i give me download link of 1st page link Quote Link to comment Share on other sites More sharing options...
phat_hip_prog Posted October 27, 2013 Share Posted October 27, 2013 it is right but many browsers now just open a new tab you will have to use javascript instead then, exampls here http://stackoverflow.com/questions/12939928/make-a-link-open-a-new-window-not-tab Quote Link to comment Share on other sites More sharing options...
blacktiger786 Posted October 27, 2013 Author Share Posted October 27, 2013 its ok o now how to open new window but problem is like i defined now i mention above 4 link on first window ok now i click on this link $link1='<a href="http://www.example.com/trailer2.flv">download</a><br>'; ok now open new window with the help of javascript in this second window have download button when i click it its give me a link which i click on first page .. http://www.example.com/trailer2.flv i want this link show on first page but not download able when i click on it its give me new window where have download button then i click on this button then download start Quote Link to comment Share on other sites More sharing options...
phat_hip_prog Posted October 27, 2013 Share Posted October 27, 2013 er i not understand what you say 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.