Previous Example-|-Next Example-|-Return to Chapter Listing

Example 17.9:
Writing to the Current Document

You can't write to the current document without rewriting it. Click on the following button to see what happens (then Reload to come back):

This is the script we used. In the HEAD... <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function Rewrite() { document.open() document.write("Write this to the document<BR>") document.close() } //--> </SCRIPT> Then this form: <FORM> <INPUT TYPE="BUTTON" VALUE="Write to this Document" onclick="Rewrite()"> </FORM>
Previous Example-|-Next Example-|-Return to Chapter Listing