Sorry for the easy question.Given the following html
<div id="Jessica">
Alba.
</div>
and the javascript:
window.onload= function()
{
var hot= document.getElementById("Jessica");
hot.onclick=function()
{
alert(hot);
}
}
What should I put between the parenthesis to get the id displayed “Jessica”? Thanks.
I put “hot” but it is incorrect.
Use the
idproperty.