jeeva Posted May 8, 2008 Share Posted May 8, 2008 Hi frnds I need to protect my site content. In order to do that i have to disable the clipboard from storing the data while user do copy and print screen. i have a javascript code to disable clipboard but its working only in IE browser. Code: <script language="javascript"> function clearData(){ window.clipboardData.setData('text','') } function ccd(){ if(clipboardData){ clipboardData.clearData(); } } setInterval("ccd();", 1000); </script> Can i disable clipboard by using javascript in other browser also? Thanks Jeeva Link to comment https://forums.phpfreaks.com/topic/104666-disable-clipboard/ Share on other sites More sharing options...
wrongmove18 Posted May 8, 2008 Share Posted May 8, 2008 In Firefox the Clipboard is disabled on default. You can read more info here.. http://www.webhostingtalk.com/showthread.php?t=486692 Link to comment https://forums.phpfreaks.com/topic/104666-disable-clipboard/#findComment-535715 Share on other sites More sharing options...
jeeva Posted May 8, 2008 Author Share Posted May 8, 2008 Thanks wrongmove18, Is there any other possibilities to disable print screen? Link to comment https://forums.phpfreaks.com/topic/104666-disable-clipboard/#findComment-535719 Share on other sites More sharing options...
wrongmove18 Posted May 8, 2008 Share Posted May 8, 2008 Try this: http://dscripts.awardspace.com/scripts.php?id=29 Link to comment https://forums.phpfreaks.com/topic/104666-disable-clipboard/#findComment-535725 Share on other sites More sharing options...
jeeva Posted May 8, 2008 Author Share Posted May 8, 2008 I couldn't able to view that page.... Link to comment https://forums.phpfreaks.com/topic/104666-disable-clipboard/#findComment-535729 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.