Some Text

Move the mouse over me for a scary picture...

var divElement = document.getElementById("demo"); var pictureDiv = document.getElementById("demo2"); divElement.innerHTML = "Screen height is " + screen.height; var divThree = document.getElementById("demo3"); divThree.innerHTML = "this is using javaScript"; divElement.innerHTML = "Screen height is " + screen.height; function clicked() { //divElement.innerHTML = "You CLICKED ME!!"; //You can also add HTML tags as text...comment out above line divElement.innerHTML += "You CLICKED ME!!" + "

"; } function showPicture() { pictureDiv.innerHTML = ""; } function noPicture() { pictureDiv.innerHTML = "Move the mouse over me for a scary picture"; } function changeBackground() { document.body.style.backgroundColor = "red"; }