Javascript Question
by lblakej
HTML
<p id="demo">Click below to find out my concentration in Journalism School.</p>
<button type="button" onclick='document.getElementById("demo").innerHTML = "Advertising"'>Photography, Newswriting, or Advertising Degree?</button>
<p><em>If you use this example in your website, then you must customize it in some way that is related to you.</em></p>
CSS
body {
background-color: ghostwhite;
}
JavaScript
// there is no javascript here as this is a simple "onlick" event that is added in the button tag. This is an example of a javascript comment