use document.open
- it will also clear all the nodes in your document though
If you want to remove event listeners for a specific element or a set of elements - just clone them and replace the real ones with their clones.
use document.open
If you want to remove event listeners for a specific element or a set of elements - just clone them and replace the real ones with their clones.
"When do you think people die? When they are shot through the heart by a bullet of a pistol? No. When they are ravaged by an incurable disease? No. When they drink a soup made of a poisonous mushroom? No! It's when they're forgotten."
— Dr. Hiluluk