How can i open a link in a popup?

Discussion in 'Programming' started by nevret2, Aug 12, 2007.

  1. #1
    hello,

    i want if someone click on download button on my site, it will not link visitors directly to the download site, but first it will open a little popup and in this popup it will say again ' Download' and if they click on download in this popup they will be linked to the download site

    so:

    <a href="www.download.com/fgfg.rar">Download</a>
    Code (markup):

    the idea: to put a little ad in the popup
     
    nevret2, Aug 12, 2007 IP
  2. theartofennui

    theartofennui Active Member

    Messages:
    117
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #2
    <a href="www.download.com/fgfg.rar" target="_blank">Download</a>
    Code (markup):
     
    theartofennui, Aug 12, 2007 IP
  3. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    i said i want :there must be open a little popup saying again download, if you click in that popup on download it will redirect you to www.download.com/fgfg.rar

    thnx for ur reply anyway
     
    nevret2, Aug 12, 2007 IP
  4. bsklep

    bsklep Well-Known Member

    Messages:
    2,122
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    How much you can pay for do it? :D
     
    bsklep, Aug 12, 2007 IP
  5. dkin69

    dkin69 Active Member

    Messages:
    644
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Dont make him pay for something so easy.

    Try this

    <A HREF="www.download.com/fgfg.rar" onCLick="return confirm('Are you SURE you want to download this file?')">Download</A>
     
    dkin69, Aug 13, 2007 IP
  6. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    dkin69 thnx very much for your help

    but i wanted a real popup, like it will call a popup.html and with the download link in it again

    i want to do this to put a ad in it
     
    nevret2, Aug 13, 2007 IP
  7. bsklep

    bsklep Well-Known Member

    Messages:
    2,122
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Yes I understand You.. :)
    .. how much? :D
     
    bsklep, Aug 13, 2007 IP
  8. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    i only have 6$:(
     
    nevret2, Aug 13, 2007 IP
  9. warpser

    warpser Active Member

    Messages:
    294
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    You want them to click on link to ANOTHER page, where it has download link?

    All you have to do is make another page (popup.html , or whatever) and put a link to the actual file.

    Then where the user will click FIRST on the FIRST page, link that to: popup.html (which will include file link on this page)
    (This link will of course open a popup window)



    Same code provided by theartofennui, except a small tweak:

    
    <a href="www.download.com/popup.html" target="_blank">Download</a>
    
    HTML:
     
    warpser, Aug 13, 2007 IP
  10. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #10
    nono

    if i put <a href="www.download.com/fgfg.rar" target="_blank">Download</a>

    it must automatic put www.download.com/fgfg.rar in a popup.html and call that popup.html so you can gt the link in that popup
     
    nevret2, Aug 13, 2007 IP
  11. warpser

    warpser Active Member

    Messages:
    294
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #11
    Oh, that changes everything.

    I assume you'll need that done for many files,
    If you want it done automatically, i suppose you need a script or something.
    Can't help yah there.
     
    warpser, Aug 13, 2007 IP
  12. bsklep

    bsklep Well-Known Member

    Messages:
    2,122
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #12
    I can do it.. so.. $6 is ok ;)

    If interesyed. Pm me :)

    Cheers
     
    bsklep, Aug 13, 2007 IP