Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
ionezation

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.

Share this post


Link to post
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'.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...