Sunday, April 20, 2014

How to Disable Print Screen Button Using JavaScript

Default.aspx

Write the following JavaScript code in the Page as follows.
<head id="Head1" runat="server">
<script language="JavaScript">
    function disableprintscreen() {
        var content=window.clipboardData.getData("Text");
        if (content==null) {
            window.clipboardData.clearData();}
        setTimeout("clp_clear();",1000);}
    </script>
</head>


Write the following code in the form

<form id="form1" runat="server">
<body onload='disableprintscreen()'>
<h1> disable print screen button</h1>
</body>

</form>





No comments:

Post a Comment

Thank you for visiting my blog

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...