Answers for "clear html screen"

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

Browse Popular Code Answers by Language