This is a discussion on how to print iframe pdf document using file print menu using javascript within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; how to print iframe pdf document using file print menu using javascript...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| how to print iframe pdf document using file print menu using javascript |
|
#2
| |||
| |||
| <HTML> <HEAD> <SCRIPT> var frameSrc = ''; frameSrc += '<HTML><BODY>'; frameSrc += '<BUTTON ONCLICK="alert(\'Kibology\');">'; frameSrc += 'button<\/BUTTON>'; frameSrc += '<\/BODY><\/HTML>'; var iframeWin, iframeElement; function init () { iframeWin = window.frames.anIframe; iframeWin.document.open(); iframeWin.document.write(frameSrc); iframeWin.document.close(); iframeElement = document.getElementById ? document.getElementById('anIframe') : document.all['anIframe']; } </SCRIPT> </HEAD> <BODY ONLOAD="init();"> <A HREF="javascript: alert (iframeWin.document.body.firstChild.nodeName); void 0"> show iframe first child </A> | <A HREF="javascript: iframeElement.width = 300; void 0"> set width to 300 </A> <BR> <IFRAME ID="anIframe" NAME="anIframe" SRC="about:blank" WIDTH="100"> </IFRAME> </BODY> </HTML> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Print Ads | dvduval | 1 | 10-14-2007 03:46 PM | |
| How can I print my output? | S.Vinothkumar | C and C++ Programming | 2 | 10-12-2007 11:46 PM |
| Difference between echo and print statement? | devarajan.v | PHP Programming | 2 | 07-30-2007 03:26 AM |
| How you print the array using Perl? | raj | Perl | 1 | 07-25-2007 12:02 AM |
Our Partners |