I have an <a>
tag on the page like below:
<a href="/-/media/Wallpapers/wallpaper_nokia.jpg" download="">Download Wallpaper</a>
When the user clicks on the link the save as button opens up for the user to save the image. What I want to do is to redirect user to the home page after user clicks on the save button.
Is there any way to achieve this in javascript?