Download File Using JavaScript jQuery

0 votes
I have a similar requirement listed here.

When $('a#someID').click() is reached, I need the user's browser to initiate a download.

However, I am unable to use the window.href method because it replaces the current page contents with the file you are attempting to download.

Instead, I'd like to launch the download in a new window/tab.

What makes this possible?
Nov 15 in Java by Nicholas
• 7,420 points
27 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP