Here is a pure JavaScript one-liner that will clear all the DOM elements from your web page:
document.removeChild(document.documentElement);
For Microsoft Azure Practitioners
Here is a pure JavaScript one-liner that will clear all the DOM elements from your web page:
document.removeChild(document.documentElement);