Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | VFAQ | Q1542 [ previous next ]

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

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 = "";

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.