Page is a not externally linkable
- Browsers
-- Opera Browser Usage and Support
---- Event capture in Opera


Stue - 3:11 pm on May 29, 2002 (gmt 0)


Well, capturing events doesnt always mean manipulation. In my case im about to cap the right key and instead of popping up the context menu there will be a custom menu (of course "view source" isnt in it).

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
<BODY onclick="function();">

but not
document.body.onclick = function();

or
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.


Thread source:: http://www.webmasterworld.com/opera_browser/285.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com