PDA

View Full Version : I can't print from an Iframe



mikersson
03-23-2010, 01:48 AM
Hello I need to print a page in a parent iframe but I dont get it. My code JavaScript is:


<script Language="javascript">

function printfile()
{
window.frames['pictures'].focus();
window.frames['pictures'].print();
}

</script>

My index.html page contains 3 iframes:


<body>
<div id="wrapper">
<div id="header">
<iframe id="header" src="header.html" ></iframe>
</div>
<div id="content">
<iframe id="content" src="arm001.html" Scrolling="no"> </iframe>

</div>
<div id="footer"><iframe id="footer" src="footer.html" > </iframe></div>
</div>
</body>

I'll apreciate your contribution