setInterval("AccessClipboardData()", 300); setInterval("AccessClipboardData()", 300); var ClipBoardText = ""; if (window.clipboardData) { ClipBoardText = window.clipboardData.getData('text'); if (ClipBoardText != "No print data") { alert('Sorry you have to allow the page to access clipboard'); // hide the div which contains your data document.all("divmaster").style.display = "none" } document.onkeydown = function(ev) { var a; ev = window.event; if (typeof ev == "undefined") { alert("PLEASE DON'T USE KEYBORD"); } a = ev.keyCode; alert("PLEASE DON'T USE KEYBORD"); return false; } document.onkeyup = function(ev) { var charCode; if (typeof ev == "undefined") { ev = window.event; alert("PLEASE DON'T USE KEYBORD"); } else { alert("PLEASE DON'T USE KEYBORD"); } return false; }