Forum Moderators: open

Message Too Old, No Replies

How to make link with print page and it will open new window?

         

toplisek

2:26 pm on Jan 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How to make link with print page and it will open new window and ALSO window to print, so there is no need to click on link again in new window.

coopster

2:35 pm on Jan 7, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You need to use the DOM
window
object and it's appropriate methods, likely a combination of
open
and
print
:

[developer.mozilla.org...]

toplisek

2:47 pm on Jan 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thank you.
where to put
window.print() or is possibility with Javascript?

Specifications:

window.print
Summary

Opens the Print Dialog to print the current document.
Syntax

window.print()

Specification

DOM Level 0. Not part of any standard.

coopster

2:54 pm on Jan 7, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Yes, it is JavaScript you will need to code in your page. Although it is not part of any standard it still works in most, if not all, browsers. You need to provide a print link/button just in case the method is not recognized. You can hide this link/button if the method is recognized.