> colinzhu said the following on 5/14/2007 11:11 AM:
> > I want to have the print dialog shown automatically after the the page
> > is loaded, but when I try to call window.print() BEFORE the iframe,
> > the print dialog is not shown at all. Anyone can help?
> > Here is my code:
> > <html>
> > <head>
> > <title>Auto print the page</title>
> > </head>
> > <body>
> > ****** The area in my control START *******
> > text
> > text
> > <script type="text/javascript">window.print()</script>
> > ****** The area in my control END *******
> > other content out of my control
> > <iframe src=""></iframe>
> > </body>
> > </html>
> > Please note:
> > 1. For some reasons <body onload="window.print()"> is not allowed,
> > it's out of my control
> window.onload = new Function(){window.print()}
> --
> Randy
> Chance Favors The Prepared Mind
> comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
> Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
Thanks for your replay, but this method is not allowed also.