ionezation 0 Posted March 5, 2014 Report Share Posted March 5, 2014 Please give a little light on these things : output.textContent; output.innerText; return true [on page 276 in U Object in its property function of SetText() just before two closing braces] if(obj && obj.detachEvent){ obj.detachEvent('on' + type, fn); - why we are using [ 'on' + type ] here ?? Thanks in Advance. Quote Link to post Share on other sites
HartleySan 826 Posted March 5, 2014 Report Share Posted March 5, 2014 Because old IE browsers require 'on' at the front of the event names. Quote Link to post Share on other sites
ionezation 0 Posted March 5, 2014 Author Report Share Posted March 5, 2014 So on + type concatenate the ON even with the Object type ?? is that the reason ? Quote Link to post Share on other sites
HartleySan 826 Posted March 5, 2014 Report Share Posted March 5, 2014 I'm not sure what you mean by that, but the event model used in old IE browsers require 'on' to be in front of the event type that you want to register or remove. The event model used by newer IE and all other browsers require the exact same event type, just without the 'on'. Quote Link to post Share on other sites
ionezation 0 Posted March 5, 2014 Author Report Share Posted March 5, 2014 So on + type concatenate the ON event with the Object type ?? is that the reason ? Sorry for my mistake ... I got the point San. Thanks again Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.