priting from lightbox

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

priting from lightbox

Post 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.
Post Reply