James Published & Destroyed this: Difference between revisions
(Created page with "Inspired by contest among friends titled "Best Tweetable Javascript", here is 123 characters which causes a webpage to eat itself. setInterval(function() { i = document.quer...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
To run paste it into the web developers console as follows: | To run paste it into the web developers console as follows: | ||
[[File: | [[File:WebConsole.png|800px]] |
Latest revision as of 14:30, 12 February 2016
Inspired by contest among friends titled "Best Tweetable Javascript", here is 123 characters which causes a webpage to eat itself.
setInterval(function() { i = document.querySelectorAll('*'); e = i[i.length - 1]; p = e.parentNode.removeChild(e); }, 1000)
To run paste it into the web developers console as follows: