This post was most recently updated on August 5th, 2024
I have one Url of website(for downloading file), I don’t want to show this url. When downloading, I can call window.location.href = “full link file path”). After some time, I have called redirect to another page of the web site/application:
1 2 3 4 5 6 7 8 9 10 11 |
$(document).on("click", "#openOnLoad", function () { window.location.href = downloadlink; setTimeout(function () { document.location.pathname = "/Dashboard"; }, 5000); }); |
Enjoy..