Open another page to download and location to the page to add the download number, and then go back.<script>window.open("download.php?id=1", "_blank");</script> <script>window.open("adddownloadnumber.php?id=1", "_self");</script>in adddownloadnumber.php:<script>window.history.go(-1);</script>
<script>window.open("adddownloadnumber.php?id=1", "_self");</script>in adddownloadnumber.php:<script>window.history.go(-1);</script>