Dec 16, 2006 #1 Dinobot2 Technical User Aug 9, 2005 75 US Is there any way to use an onOpen command that when a page is opened I can have an action like print assigned to it? ex onOpen="windows.print()"
Is there any way to use an onOpen command that when a page is opened I can have an action like print assigned to it? ex onOpen="windows.print()"
Dec 17, 2006 1 #2 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB You would use onload: Code: <body onload="window.print();"> or Code: window.onload = function() { window.print(); } Hope this helps, Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
You would use onload: Code: <body onload="window.print();"> or Code: window.onload = function() { window.print(); } Hope this helps, Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Dec 17, 2006 Thread starter #3 Dinobot2 Technical User Aug 9, 2005 75 US Thank you so...............Very, Very, very very....Much!! Upvote 0 Downvote