Click here to Skip to main content
14,699,605 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi Friends,

i have done sucessfully disable printscreen in IE only
now i want to disable in Firfox
any one knows please share with me

my javascript code is

function do_err()
    {
        return true
    }
onerror=do_err;
function no_cp()
    {
        clipboardData.clearData();setTimeout("no_cp()",100)
    }
no_cp();


<HTML>
<HEAD>

<!-- (c) 1998-2010 ArtistScope (www.artistscope.com) -->
<SCRIPT SRC="no-printscreen.js"></SCRIPT>
</HEAD>
<BODY>
        This printscreen test file
</BODY>
</HTML>



i m waiting for u r valuable replays

Thanks
Venkat.S
Posted
Updated 20-Jul-11 21:33pm
v2
Comments
R. Giskard Reventlov 21-Jul-11 2:58am
   
Why would you care if a user wants to print the page? If they really wanted to they could do a screen grab or just save the page locally, remove your bit of script and print it anyway.

1 solution

You can't. How ridiculous. Any js you write, a hacker can disable. Forget about it.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900