Click to See Complete Forum and Search --> : printing this iframe doesn't work


kariba
04-10-2003, 01:40 AM
Hello all,

i have a parent page, from where I am ouputing iframe, and loading a file in the iframe. This iframe is hidden, and I need to print this iframe when it's loaded. For some reason it prints the whole window, not the iframe.

right now i have the iframe visible a little bit for testing, and the print dialog appears fine, when iframe is loaded, but then it prints what i see, with the parent.

i am using this piece:
<script for="window" event="onload()">
javascript:window.print();
</script>

But I have tried pretty much anything...

Thanks for any help.

Mike

kariba
04-10-2003, 01:48 AM
OUPS, I got it.

self.focus().

;-)Mike