Javascript examples for DOM:Quiz
Use the innerHTML property to change the content of the <p> element to "New text!".
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = "New text!"; </script>//from w ww .ja va 2 s . co m </body> </html>