Jump to content

how to setup this link code to another popup window


blacktiger786

Recommended Posts

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..

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.