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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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