I am formatting training lab books using XHTML with XML custom tags. I want to give students a reminder that copying and pasting commands is not conducive to learning, so I want to disable right mouse click, but only when they try to copy a command contained in a specific tag. Here is the script I am trying:
status="Copying and pasting commands is detrimental to learning";
It works perfect without the first line and with "document.onmousedown" in the second, but that affects entire document. Is onmousedown only possible within document and window, or am I missing something obvious?