Skip to content
Snippets Groups Projects
open-window-with-file-url-with-host.html 182 B
Newer Older
  • Learn to ignore specific revisions
  • <!DOCTYPE html>
    <html>
    <body>
    <script>
        if (location.hash !== "#test")
            window.open("file://example.org" + location.pathname + "#test", "_self");
    </script>
    </body>
    </html>