Jörn Nettingsmeier wrote:
Richard Frovarp wrote:
See http://www.scottandrew.com/weblog/articles/cbs-events. This approach has
worked for us for years.

Hope this helps.
Markus Angst
Okay, I was able to do this under Firefox:

window.addEventListener('load',LenyaDisableBackspace,false);

which won't work in IE iiuc.

Right, but there is an alternate method. It is supposed to work in IE 6.0+. I'll give that a try once I get FF working.


After changing the jx to do the same to load FCKeditor, that worked. But I can't get anything to work to register the events on the body. Whether it be body.addEventListener, or body.onkeypress, they just don't work. The only thing I've got to work so far is document.onkeypress. Perhaps I'm not getting the correct node to add my listeners to.

strange.

I've tried:
document.body
document.getElementsByTag('body')
document.getElementsByTag('body')[0]

i think it should be document.getElementsByTagName('body')[0]. what does the javascript error console in firefox say?



That one works now. Previously I was getting it has no properties or something like that and on an alert it came back undefined. If I do document.getElementsByTagName('body')[0].onkeydown = functionname, I can see it is registered using Firebug. However, having an alert/breakpoint for even entering the function doesn't trip.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to