ionezation Posted March 5, 2014 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. Link to comment Share on other sites More sharing options...
HartleySan Posted March 5, 2014 Share Posted March 5, 2014 Because old IE browsers require 'on' at the front of the event names. Link to comment Share on other sites More sharing options...
ionezation Posted March 5, 2014 Author Share Posted March 5, 2014 So on + type concatenate the ON even with the Object type ?? is that the reason ? Link to comment Share on other sites More sharing options...
HartleySan Posted March 5, 2014 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'. Link to comment Share on other sites More sharing options...
ionezation Posted March 5, 2014 Author 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 Link to comment Share on other sites More sharing options...
Recommended Posts