I used this code to prevent copy/paste function on my site, but in firefox it has disabled the search field too. :(
Is there any way to do this that excludes the input field in this code?
<script type="text/JavaScript">
function killCopy(e) {
return false;
}
function reEnable(){
return true;
}
document.onselectstart = new Function("return false");
if (window.sidebar) {
document.onmousedown = killCopy;
document.onclick = reEnable;
}
</script>