Page 1 of 1

priting from lightbox

Posted: Thu Jun 25, 2009 8:44 pm
by kendall
Hey guys...I am trying to print from a lightbox that has an iframe in it....

Code: Select all

<script>
function printPage(){ 
	//alert(parent.document.getElementById('TB_iframeContent').print());
	var iframe = parent.document.getElementById('TB_iframeContent');
	iframe.focus(); 
	iframe.document.print(); 
}
</script>
while i get the iframe element but the print function is undefined... i don't have a printer installed but I do have the image write and pdf maker so why can't i get the print function....I'm using FF and I'm calling the page from the same domain.