Answers for "function abort Print() { alert("Printing is not allowed"); document.write(); }]"

0

function abort Print() { alert("Printing is not allowed"); document.write(); }]

<!DOCTYPE html>
<html>
    <body onbeforeprint="abortPrint()">
        <p>This is my Content</p>

        <script>    
            function abortPrint()
            {
                alert("Printing is not allowed");
                document.write();
            }
        </script>
        
    </body>
</html>
Posted by: Guest on June-09-2021

Code answers related to "function abort Print() { alert("Printing is not allowed"); document.write(); }]"

Browse Popular Code Answers by Language