Facebook
From as, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 270
  1. <!DOCTYPE html>
  2. &lt;html&gt;
  3.  
  4.  
  5.  
  6.  
  7.     &lt;style&gt;
  8.     h1:hover {
  9.   background-color: rgb(238, 7, 7);
  10.   width: fit-content;
  11.    margin-left: 20%;
  12.  
  13. }
  14.    
  15.     &lt;/style&gt;
  16. &lt;body&gt;
  17.  
  18.     <h1>md asif mahmud </h1>
  19.     <button >Click here </button>
  20.     <p id="demo"></p>
  21.     <p id="demoo">Click "Remove", and this paragraph will be removed from the DOM.</p>
  22. <button >Remove</button>
  23.  
  24.  
  25.  
  26. <p>Click the button to swap the text of the DIV element:</p>
  27. <p><button >Click Me</button></p>
  28. <div id="myDIV">Hello</div>
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. [removed]
  36. function myFunction() {
  37.   document.getElementById("demo")[removed] = "good morning ";
  38. }
  39. function myFunctionn() {
  40.    document.getElementById("demoo")[removed] = "";
  41.  
  42.  }
  43.  
  44.  function myFunctionnn() {
  45.   var x = document.getElementById("myDIV");
  46.   if (x[removed] === "Hello") {
  47.     x[removed] = "Swapped text!";
  48.   } else {
  49.     x[removed] = "Hello";
  50.   }
  51. }
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. [removed]
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. &lt;/body&gt;
  67. &lt;/html&gt;
  68.