I have one page in HTML , there are two buttons , save and print.
When user click on the Print it should print the page and
When user click on the Save page it should Open Save as… Box for that page.
Javascript/jQuery solution preferred.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For printing you can use
window.print().There is no standard way to trigger the Save dialog. In IE you can use
document.execCommand('SaveAs').EDIT: Technically
window.printisn’t part of any standard (Source: MDC) but it’s widely available.