Jump to content

Basic Javascript Iframe print


dizzy1

Recommended Posts

I'm trying to print my Iframe, the name tag of the iframe is being passed to this function when called, however instead of looking for the iframe by the variable passed, it looks for an iframe called ptarget.

 

 

function iprint(ptarget) 
{                         
window.parent.ptarget.focus();
window.print();
}

 

I know this is a syntax error, but I just don't have a clue what to change on it. Please Help

 

Thanks In Advance Dizzy.

Link to comment
https://forums.phpfreaks.com/topic/247310-basic-javascript-iframe-print/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.