hr-survey.com

Web Security

Use of PID, PIN, UserID, and Password

Surveys may be designed with a level of security that ranges on a continuum from non-existant to high.

Blocking View Source

To stop soneone from viewing the source code of your HTML questionnaire, insert the following Javascript code. This will disable a right-click on the page that contains the function.

[script language="javascript">]
function noRightClick() {
 if (event.button==2) { alert("Right click has been disabled") } 
}
document.onmousedown=noRightClick
// End of script

Or,

[script LANGUAGE="JavaScript"]
function right(e) {
 if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) 
   alert("Right click has been disabled")
   return false;
 else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
   alert("Right click has been disabled")
   return false
 }
 return true
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End of script