lemansky

Untitled

Mar 9th, 2021
575
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>Document</title>
  8.    
  9. </head>
  10. <body>
  11.     <h1 id="title">Home Page</h1>
  12.     <ul data-list="nav">
  13.         <li><a href="#">link 1</a></li>
  14.         <li><a href="#">link 2</a></li>
  15.         <li><a href="#">link 3</a></li>
  16.         <li><a href="#">link 4</a></li>
  17.  
  18.         <input type="text" name="input-field" class="form-control input-lg">
  19.     </ul>      
  20.     <script>
  21.         // console.log(document.activeElement);
  22.  
  23.         // document.addEventListener('focus', (e) => {
  24.         //     console.log(document.activeElement);
  25.         //     console.log(e.target.name);
  26.         //     console.log(e.srcElement.classList);
  27.         // }, true);
  28.  
  29.         // console.log(document.documentElement);
  30.  
  31.         // console.log(document.head);
  32.  
  33.         // console.log(document.body);
  34.         // let newBody = document.createElement("body");
  35.         // newBody.innerHTML = "<p> test </p>";
  36.         // document.body = document.createElement("p");
  37.  
  38.         // console.log(document.title);
  39.         // document.title = "new title";
  40.  
  41.         // console.log(document.URL);
  42.         console.log(document.referrer);
  43.         // document.cookie = 'mysitecookie' + "=" + 'newcookie';
  44.         // console.log(document.cookie);
  45.         // console.log(document.readyState);
  46.         // document.addEventListener('DOMContentLoaded', () => {
  47.         //     console.log(document.readyState);
  48.         // });
  49.  
  50.         // console.log(document.location);
  51.         // console.log(document.location.href);
  52.         // console.log(document.location.protocol);
  53.         // document.location = "index.html";
  54.  
  55.         // console.log(document.lastModified);
  56.         // console.log(document.characterSet);
  57.  
  58.         let s = document.querySelectorAll("li");
  59.         // s.forEach(item => {
  60.         //     console.log(item.innerHTML);
  61.         // });
  62.         for (let index = 0; index < s.length; index++) {
  63.            console.log(s[index]);
  64.            // s[index].remove();
  65.            
  66.        }
  67.  
  68.        let li = document.getElementsByTagName("li");
  69.        for (let index = 0; index < li.length; index++) {
  70.            console.log(li[index]);
  71.            li[index].remove();
  72.            // index--;
  73.            // li[index].parentNode.removeChild(li[index]);
  74.        }
  75.  
  76.    </script>
  77. </body>
  78. <!-- <script>
  79.    document.addEventListener('DOMContentLoaded', () => {
  80.        console.log(document.readyState);
  81.    });
  82. </script> -->
  83. </html>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×