Hi there,
I found very cool trick to disable copy by executing the following line in OnLoad argument:
block = setInterval("window.clipboardData.setData('text','')",20);
What it does, is preventing you while the page is open from copying anything "even from outside your page"
and you should execute the following line in OnUnLoad argument to enable the copying after your website is closed:
clearInterval(block);
I have 2 questions:
1) If you just opened the page, you can do 1 quick copy "and its not disabled yet", but if tried again, its disabled. Why is that! and what does it mean the figure "20" in the setinterval statment?
2) In my home pc which is (WIN XP, IE 6.5) its working prefect, but in my work pc which is (WIN 2000, IE 5.0) the minute I opened my webpage "it bomb" giving an error "iexplorer.exe has generated errors and will be closed by windows"! Why is that! Up to my knowledge that javascript might work on some versions but not bomb on old versions!
Please advice on the above 2 questions
I found very cool trick to disable copy by executing the following line in OnLoad argument:
block = setInterval("window.clipboardData.setData('text','')",20);
What it does, is preventing you while the page is open from copying anything "even from outside your page"
and you should execute the following line in OnUnLoad argument to enable the copying after your website is closed:
clearInterval(block);
I have 2 questions:
1) If you just opened the page, you can do 1 quick copy "and its not disabled yet", but if tried again, its disabled. Why is that! and what does it mean the figure "20" in the setinterval statment?
2) In my home pc which is (WIN XP, IE 6.5) its working prefect, but in my work pc which is (WIN 2000, IE 5.0) the minute I opened my webpage "it bomb" giving an error "iexplorer.exe has generated errors and will be closed by windows"! Why is that! Up to my knowledge that javascript might work on some versions but not bomb on old versions!
Please advice on the above 2 questions