search

Home  >  Q&A  >  body text

Help: Web page download problem!

Let me describe it first. For example, we have a direct link download address www.php.cn/a.zip [We know that the downloaded file is a.zip]


But what I want to do is: no matter whether other people access this download link directly or jump to this download link through other pages; what I want to achieve is that when the user accesses this download link After downloading the connection, we judge that it has generated the download; then we execute: open a new interface in the current browser and visit www.php.cn or any specific interface.


#Please tell me how to do it and how to do it!

极世极世2331 days ago1049

reply all(4)I'll reply

  • 无忌哥哥

    无忌哥哥2018-07-11 09:23:41

    Add a target

    in the a tag

    reply
    0
  • 极世

    How to add and judge if you directly access this direct link?

    极世 · 2018-07-11 09:32:34
    无忌哥哥

    Your direct link

    无忌哥哥 · 2018-07-11 10:37:08
    无忌哥哥

    Add target='_blank' to the link a

    无忌哥哥 · 2018-07-11 10:37:35
    极世

    I mean, he accesses php/a.zip directly, and the download is generated directly during this process. Where can I add the code for him? ! ! ! !

    极世 · 2018-07-12 09:51:05
  • Cancelreply