browser/devtools/framework/test/browser_toolbox_options_disable_js.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <title>browser_toolbox_options_disablejs.html</title>
     5     <meta charset="UTF-8">
     6     <style>
     7       div {
     8         width: 260px;
     9         height: 24px;
    10         border: 1px solid #000;
    11         margin-top: 10px;
    12       }
    14       iframe {
    15         height: 90px;
    16         border: 1px solid #000;
    17       }
    19       h1 {
    20         font-size: 20px
    21       }
    22     </style>
    23     <script type="application/javascript;version=1.8">
    24       function log(msg) {
    25         let output = document.getElementById("output");
    27         output.innerHTML = msg;
    28       }
    29     </script>
    30   </head>
    31   <body>
    32     <h1>Test in page</h1>
    33     <input id="logJSEnabled"
    34            type="button"
    35            value="Log JS Enabled"
    36            onclick="log('JavaScript Enabled')"/>
    37     <input id="logJSDisabled"
    38            type="button"
    39            value="Log JS Disabled"
    40            onclick="log('JavaScript Disabled')"/>
    41     <br>
    42     <div id="output">No output</div>
    43     <h1>Test in iframe</h1>
    44     <iframe src="browser_toolbox_options_disable_js_iframe.html"></iframe>
    45   </body>
    46 </html>

mercurial