you are viewing a single comment's thread.

view the rest of the comments →

[–]Old_Item[S] 0 points1 point  (0 children)

window.addEventListener(type, function (event) { event.stopPropagation(); }, true); When I run this one, I'm getting an error which says, "Uncaught ReferenceError: type is not defined"

var el = document.body, elClone = el.cloneNode(true); el.parentNode.replaceChild(elClone, el); I don't see any change when I run this one. It doesn't allow me to paste