Closed bob2517 closed 2 years ago
This is done on the branch. It works with the window and iframe selectors. And it works in body:init if you want to really irritate your users with a printer dialog box on page load, or if you validly need to print the contents of an iframe when it gets drawn.
Added "print: parent;" so that printing can target the parent window of an iframe. "window" prints the iframe contents if used from inside an iframe.
"print: parent" now checked in on 2.9.0
Closing in preparation for release.
I need this for work and it would make a nice command rather than using "run: {= do the printing in JS here =};", so I'm squeezing it into the new release.
Syntax will be:
It will basically do a JavaScript print() on the window referenced.