document.querySelector ('body'). ejectAdjacentHTML is not working.

Closed due to the fact that the essence of the issue is incomprehensible by the participants αλεχολυτ , aleksandr barakin , Kromster , Darth , pavel 21 Aug '17 at 13:51 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Please explain, at what point it does not work, what is the “opposite”, what did you try to do and what did you fail to do? - Sergey Glazirin
  • insertAdjacentHTML - allows you to insert arbitrary HTML anywhere in the document, including between nodes. What do you think is the opposite of inserting html anywhere in the document? - Alexey Shimansky
  • how to remove document.querySelector ('body'). insertAdjacentHTML - LGPvS
  • and how to remove it? - LGPvS

1 answer 1

No. Work with dom elements. Everyone there to remove and removeChild .