Advertisement
Guest User

HTML Viewer yuuvis

a guest
Apr 4th, 2022
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.56 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="utf-8" />
  5.     <title>HTML Viewer</title>
  6.     <base href="/">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1" />
  8.   </head>
  9.   <body style="margin:0;">
  10.     <iframe id="htmlViewer" style="width:100%;height:auto;outline:none;"></video>
  11.     <script>
  12.      window.addEventListener('load', function() {
  13.           document.querySelector('#htmlViewer').setAttribute('src', decodeURIComponent(window.location.search.replace('?file=', '')));
  14.       })
  15.     </script>
  16.   </body>
  17. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement