Hello Members,
Hope you are doing good!!
I am trying to open the document in modal, Can any guide me here.
Thank you in advance!!
Modal CODE
We are trying to open the document in Iframe here is the code
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>pdf viewer</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <iframe id="myFrame" style="display:none" width="600" height="300"></iframe>
- <input type="button" value="Submit" onclick = "openPdf()"/>
- <script type="text/javascript">
- function openPdf()
- {
- var omyFrame = document.getElementById("myFrame");
- omyFrame.style.display="block";
- omyFrame.src = "http://www.africau.edu/images/default/sample.pdf";
- }
- </script>
- </form>
- </body>
- </html>
It's Bit urgent, Can any one guide me here..
Thank you in advance!!