Is there a way to print the page that gets openned using target="_blank" with javascript (or jquery) instead of printing the current one?
Is there a way to print the page that gets openned using target=_blank with
Share
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.
No. A window opened using
target="_blank"has no programmatic connection to the page it was opened from.If it was opened with
window.openthen the return value of that call would be a reference to that window, so you could use that to get to theprintmethod (subject to the same origin policy).That said, I can’t think of any reason to do this that would not be better served by a print media style sheet.