News for hackers. Stuff that matters.
Re:Web pages can now detect when Chrome’s window is covered ... by sli on Thursday March 28, 2019 @02:10PM (#19514905)
Yes. jQuery's `.unbind()` can do it easily, but doing it in vanilla JS is a bit different[1]. You essentially clone the node and swap the clone into the original node's spot. This also clears all event handlers for any child nodes (so, swap out <body> with a clone and you're set).

[1]: https://stackoverflow.com/a/19470348/13876

There are no comments on this comment yet.