Jump to content
Larry Ullman's Book Forums

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 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'.

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.

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.

  • Create New...