dizzy1 Posted September 17, 2011 Share Posted September 17, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/247310-basic-javascript-iframe-print/ Share on other sites More sharing options...
dizzy1 Posted September 22, 2011 Author Share Posted September 22, 2011 I really need this please, if anyone help me, I will be very grateful. Quote Link to comment https://forums.phpfreaks.com/topic/247310-basic-javascript-iframe-print/#findComment-1271784 Share on other sites More sharing options...
nogray Posted September 23, 2011 Share Posted September 23, 2011 window.parent[ptarget] Quote Link to comment https://forums.phpfreaks.com/topic/247310-basic-javascript-iframe-print/#findComment-1271913 Share on other sites More sharing options...
dizzy1 Posted September 23, 2011 Author Share Posted September 23, 2011 Thank You sooo Much Quote Link to comment https://forums.phpfreaks.com/topic/247310-basic-javascript-iframe-print/#findComment-1271923 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.