dynamically adding onmouseup to body

admin

Administrator
Staff member
Hi,

I want to add an onMouseUp-Event to the body tag. (IE 5.x)
It is important for me, that this is not done in the html-file but in an js file. I tried to do something like this:

var body = document.getElementsByTagName("body")[0];
body.onMouseUp = myOnMouseUp;

where myOnMouseUp is a valid function.
This works fine with the event onMouseDown but not with onMouseUp (with Netscape-Navigator it works but not with IE5.x)... can you help me or explain why?

Thx in advance

Ulukai
 
Back
Top