<script> window.onload = function() { frames[0].print(); } </script> <p>This text in the main frame should not be printed.</p> <iframe src="resources/print-subframe.html">