PostMessage To PDF In An IFrame October 13, 2022 Post a Comment Here's my situation. I had a webpage with an embedded PDF form. We used a basic object tag (embed in FF) to load the PDF file like this: Solution 1: For Internet Explorer, use: <object id="pdfForm" type="application/pdf" data="yourPDF.pdf"></object> Copy For Firefox, use: <embed id="pdfForm" type="application/pdf" src="yourPDF.pdf"></embed> Copy Solution 2: you can also gain access to the embed object with thisBaca JugaPdf Javascript Does Not Work In Adobe Reader Dc But All Other ReadersHow To Know The Pdf Version Using Javascript + Html5How To Implement Ctrl Click Behavior To Copy Text From An Embedded Pdf In A Webapp? var emb = document.getElementsByTagName("EMBED")[0]; Copy but you'll be running that code from the containing page so get a reference to the iframe instead of just calling it on document. Share You may like these postsColor Change Hamburger Menu Depending On Background ColorWhen Did All Browsers Start Supporting The String.replace(regexp, Replacement_function)?Backbone Model Error Displayed In ConsoleHow To Return Value From Loop. Js, Vuejs Post a Comment for "PostMessage To PDF In An IFrame"