View Single Post
 
Old March 29th, 2005, 10:45 AM
nancy nancy is offline
Friend of Wrox
 
Join Date: Jun 2004
Location: Montreal, Quebec, Canada.
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Joe, But I believe I've already scripted the focus correctly. I worked for a moment ... sort of: It had printed the top frame of the frameset inside that IFRAME. But as you can read, it only did it once :-(

Here's the code:

**************************************

function myprint() {
window.parent.newsletter.focus();
window.print();
}

********************************

.....And the IFRAME containing the Frameset:

**************************************

<div id="CONTENT" style="position:relative; width:570px; height:475px; z-index:1; left: 192px; top: 20px;">

<iframe name="newsletter" src="newsletter.htm" width="570px" height="475px"></iframe>

</div>

**************************************

Does anyone know how to do this?

Thanks,
nancy