Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1542 How can I print a page without the print dialogue box?

You are here: irt.org | FAQ | JavaScript | VFAQ | Q1542 [ previous next ]

You luckily cannot. Or your printer would be spitting out commercials faster than you could click your mouse.

The following was submitted by Seddon

This works for IE5 and 6, the CLASSID needs to be changed to use other browsers, not sure what to.

var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
window.document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, -1)
WebBrowser1.outerHTML = "";

Feedback on 'Q1542 How can I print a page without the print dialogue box?'

©2018 Martin Webb