<html>
<body>
<h1>The Window Object</h1>
<h2>The atob() Method</h2>
<p>The atob() method decodes a base-64 encoded string.</p>
<p>The atob() method is not supported in IE9 and earlier.</p>
<p id="demo"></p>
<script>
let text = "Hello World!";
let encoded = window.btoa(text);
let decoded = window.atob(encoded);
document.getElementById("demo").innerHTML = "Encoded: " + encoded + "<br>" + "Decoded: " + decoded;
</script>
</body>
</html>