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

billbeteille

Member since
billbeteille

Recent Docs Activity

View all activity
Page Date Comment

Event.preventDefault()


addEventListener was not executed even though it was a script executable. Script executable statements are ignored unless they are purposely executed. Hence, it was included in the init function which was called by the body onload method.