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

Q1174 How can I avoid processing cookies if the page is being printed in Netscape?

You are here: irt.org | FAQ | JavaScript | Print | Q1174 [ previous next ]

Try:

<script language="JavaScript"><!--
NowPrinting = false;
if (document.layers && self.innerWidth==0 && self.innerHeight==0) NowPrinting=true; // Hack for printing

if (!nowPrinting) {
  // do cookie stuff
}
//--></script>

©2018 Martin Webb