I am creating a Web page that contains the following code.
<script>
function changeColor(c) {
document.getElementById("message").style.color=c;
}
</script>
<p id="message">Welcome!</p>
<ul id="color">
<li>Black</li>
<li>Red</li>
</ul>
I need to ensure that when I clicks an item in the list, the text color of the Welcome! message will change. Which declaration should you use?
<li onclick="changeColor(this.innnerHtml)"> Black </li>