Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>temp</title>
- </head>
- <body>
- <!--<input type="file" id="myFile" size="50">
- <p>Click the button below do the display the file path of the file upload button above (you must select a file first).</p>
- <button type="button" onclick="myFunction()">Try it</button>
- <p id="demo"></p>
- -->
- <script>
- function myFunction() {
- var x = document.getElementById("myFile").value;
- document.getElementById("demo").innerHTML = x;
- }
- </script>
- <object style="height:100vh;width:100vw;" data="temp.pdf" type="application/pdf">
- <embed src="temp.pdf" type="application/pdf" />
- </object>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement