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