1//Prevent users from right clicking on a web page 2// Capture the MOUSEDOWN event 3 4if (document.layers) {document.captureEvents(Event.MOUSEDOWN)} //Netscape 5document.onmousedown=trapClick //MS Explorer 6 7function trapClick(ev) { 8//Mouse click event handler 9 var strMsg='All original photography Copyright 2005 By David Weinstein. Please contact David for more information.' 10 11 if (document.all) { //MS Explorer test for right button 12 if (event.button == 2) { 13 alert(strMsg) 14 return false 15 } 16 } 17 18 if (document.layers) { //Netscape test for right button 19 if (ev.which == 3) { 20 alert(strMsg) 21 return false 22 } 23 } 24 } 25
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.