tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

stylesheet-change-href.html (479B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>Obtaining a new stylesheet removes styles from the previous stylesheet.</title>
      4 <link rel=match href=stylesheet-change-href-ref.html>
      5 <script>
      6  function changeHref() {
      7    var elem = document.getElementById('stylesheet');
      8    elem.href = 'resources/good.css';
      9    elem.onload = null;
     10  }
     11 </script>
     12 <link id=stylesheet rel=stylesheet href="resources/bad.css" onload="changeHref()">
     13 <p>This text should be green on a white background