Javascript DOM Quiz
Javascript examples for DOM:Quiz
HOME
Javascript
DOM
Quiz
Description
Click the following links for the tutorial for DOM and Quiz.
Use the innerHTML property to change the content of the <p> element to "New text!".
Use the innerHTML property to change the content of the <h1> element to "New Header".
Use HTML DOM to change the value of the image's src attribute
Use HTML DOM to change the value of the input's value attribute to "Goodbye".
Use the document.write() method to output "Hello World!".
Use the getElementById method to find the <p> element, and change its text to "yes".
Use the getElementsByTagName method to find the <p> element, and change its text to "yes".
Use the getElementsByClassName method to find the <p> element, and change its text to "yes".
Use the querySelectorAll method to find the <p> element, and change its text to "yes".
Use the DOM to find and display the document's title.
Add an onclick event attribute to <button>. Clicking the button should trigger myFunction().
Use the DOM to assign an onclick event to the <button> element. Clicking the button should trigger displayDate().
Add onmouseover event to <span> element, change its color
Add click event to <p> element and change its inner html
When the button is clicked, trigger myFunction() with an event.
Add onmouseover event to <span> element and change its color