tor-browser

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

loading-resources.js (784B)


      1 //Fetching the Stylesheet
      2 var link = document.createElement("link");
      3 link.rel = "stylesheet";
      4 link.href = "resources/empty_style.css?no_cache";
      5 link.id = "link_id";
      6 document.head.appendChild(link);
      7 
      8 // Fetching an image
      9 var img = document.createElement("img");
     10 img.src = "/images/blue.png?no_cache";
     11 img.alt = "Sample Image for testing initiator Attribute";
     12 img.id = "img_id"
     13 document.body.appendChild(img);
     14 
     15 // Inserting a script element
     16 var script = document.createElement("script");
     17 script.src = "resources/empty.js?no_cache";
     18 script.id = "script_id"
     19 document.body.appendChild(script);
     20 
     21 //Inserting a html document in an iframe
     22 var iframe = document.createElement("iframe");
     23 iframe.src = "resources/green.html?no_cache";
     24 iframe.id = "iframe_id";
     25 document.body.appendChild(iframe);