Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
Actually tho, i have found to workaround by assigning the <BODY> tag the "onclick" handler, this way opera gets it. But when youre talking about remodding one js-file in 100 projects you dont want to edit each and every HTML site to make it work with the new right-click-script. You would rather just exchange the js files. Thus, the mentioned workaround isnt an option.
Im wondering why it eats
document.body.onclick = function();
document.onclick = function();
As you see, im not about to abuse or manipulate anything, im just replacing (except that i substract the "view source" and other unimitatable functions). Opera being the "user friendliest" is the "developer meanest" at the same time...well besides NS4 of course.
document.body.onclick = function;
leave off the parens, you don't want to assign the return value of the function, but rather a reference to the function itself.
Opera doesn't support right click events at all. Or has someone discovered differently with the newer Opera versions?