Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


Member since

Recent Docs Activity

View all activity
Page Date Comment

Using XMLHttpRequest

If you want event listeners to work, they must be attached first if you want them to be fired. Could be wrong on this, but it's stated later in the document.