How can I use data URIs in Internet Explorer as a url?

The code I'm trying to use is

data:text/html,
<body contenteditable style="font: 2rem/1.5 monospace;
                             max-width:60rem;
                             margin:0 auto;
                             padding:4rem;">

I found it on a website. I suggest just placing it at the URL and pressing enter, but only for Chrome, Firefox and Opera. This will not work on IE. How can I make notepad in IE?

Additional Information: I am using a working computer, and I cannot access the website and programs. There is no file explorer, the context menu of the context menu has only IE.

+4
source share
2 answers

You can try using the javascript engine to create a similar execution.


In the URL bar:

javascript:window.document.write('<body contenteditable style="font: 2em/1.5 monospace;max-width:60em;margin:0 auto;padding:4em;">');

, javascript: , .


, :

<script>
    function myFunction() {
        var myWindow = window.open("", "MyEditorWindow");
        myWindow.document.write("<body contenteditable style=\"font: 2em/1.5 monospace;padding:40px;\">");
}
</script>

jsFiddle

+4
  • URI : Internet Explorer URI . URI . URI . URI , iframe.
  • REM CSS: CSS3 rem, html, , . 2012 75% .

:

:

  • IE URI . , javascript html.
  • IE REM CSS3 Attribute rem . , em px .
+1

Source: https://habr.com/ru/post/1543702/


All Articles