SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can i open a link in a popup?

    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:



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

    the idea: to put a little ad in the popup

    so there will be like a popup.html, a script must call to it and put the download link again in it

    how can i do this?

    thnx,

  2. #2
    SitePoint Evangelist
    Join Date
    Aug 2005
    Posts
    453
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use a little javascript for popup windows. The "window.open('url to open','window name','attribute1,attribute2')" function is meant for this. You can not open a popup window with php. Html will allow you to specify a target in the anchor attribute, but you can only specify a new window, no attributes like size .
    I would seriously reconsider a popup window as most people think they are annoying and most disable popup's in there browsers. Put your add on the download page above your download button.
    Computers and Fire ...
    In the hands of the inexperienced or uneducated,
    the results can be disastrous.
    While the professional can tame, master even conquer.

  3. #3
    SitePoint Addict greg76's Avatar
    Join Date
    Aug 2004
    Location
    Poland
    Posts
    262
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Strongly agree with byron3 - pop-ups will do way more harm than good.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •