www.webdeveloper.com
Results 1 to 2 of 2

Thread: addEvent()

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    84

    addEvent()

    Code:
    addEvent(document.getElementById('myinput'), 'blur', function(event) {
        alert('The element lost focus (blurred)');
    });
    Is addEvent() a built-in functionality in JavaScript ? If not, then how will JavaScript understand it when used for an event handler ?

    Thanks

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,391
    It is not a built-in function.
    There are some examples by searching this forum
    or see: http://www.dustindiaz.com/rock-solid-addevent/
    or: http://robertnyman.com/2006/08/30/ev...vent-solution/
    or: http://en.design-noir.de/webdev/JS/addEvent/
    or other sites.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles