You are here: irt.org | FAQ | JavaScript | Print | Q1132 [ previous next ]
In Netscape Navigator 4+ you could (optionally) output form fields to the document using something like:
<script language="JavaScript"><!-- var printing = false; if (document.layers && (self.innerHeight == 0 && self.innerWidth == 0)) printing = true; //--></script> <form> <input type="text"> <script language="JavaScript"><!-- if (!printing) document.write('<input type="button" value="Click Me" onClick="alert(\'Hello World\')"> //--></script> </form>