Answers for "how to clear html page using javascript"

1

clear html screen

<html>
    <head></head>
    <body>
        <p>This should not appear</p>

        <script type="text/javascript">
            document.body.innerHTML = '';
        </script>

        <p>This should appear.</p>
    </body>
</html>
Posted by: Guest on January-19-2021

Code answers related to "how to clear html page using javascript"

Browse Popular Code Answers by Language