InnerHTML basically controls the content between a opening
and a closing tag. You can use it to change content between
opening and closing tags too !!! Try this example:
onmouseover="show(this.value)" onmouseout="hide()"
value="Go to Cas Wegkamp's personal homepage !!!"> Move cursor here to popup message </a>
</td><td>
<a href="
onmouseover="show(this.value)" onmouseout="hide()"
value="Check it out, you'll love it !!!"> Move cursor here to popup message </a>
</td></tr></table><br>
<span id="span1"></span><span><-- My Mouseover message !!!</span>
</BODY>
</HTML>
Just copy this into notepad and save the file as test.html
Look what happens when you go over the hyperlinks with your
mouse
I hope this helps, BobbaFet
Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
<script>
function fillMyDiv(html)
{
// get the reference to the div
var myDiv = document.all ? document.all['myDiv']: document.getElementById('myDiv') ;
// insert the content you had inside the textarea
myDiv.innerHTML = document.myForm.myHTML.value;
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.