I am getting the error object expected with the following code:
Expand|Select|Wrap|Line Numbers
- function click(e);
External js code for this is here:
Expand|Select|Wrap|Line Numbers
- function click(e) {
- if (document.all) {
- if (event.button == 2) {
- alert(message);
- return false;
- }
- }
- if (document.layers) {
- if (e.which == 3) {
- alert(message);
- return false;
- }
- }
- }
- if (document.layers) {
- document.captureEvents(Event.MOUSEDOWN);
- }
- document.onmousedown=click;
Julie