Jump to content
Larry Ullman's Book Forums

Textcontent & Innertext


Recommended Posts

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

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

 Share

×
×
  • Create New...