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

RUJordan

Member since
RUJordan

Recent Docs Activity

View all activity
Page Date Comment

Document.createElement()


Document.createElement()


Document.createElement()


Scripts should be separate from HTML. Assign the document.body an onclick function (or attach an event listener for multiple events) and advocate good JS practices.