crs
05-21-2003, 10:01 AM
This code works on IE and Opera but not in Mozilla... abd I would like it to work in all of them.
What can I do?
<html>
<head>
<title>Title</title>
<script>
<!--
function myFunction (myObject)
{
myObject.nextSibling.innerText = window.event.type;
}
-->
</script>
</head>
<body>
<div onClick="myFunction(this)" onMouseOver="myFunction(this)" onMouseOut="myFunction(this)">Do me...</div><div>...</div>
</body>
</html>
Thank you in advance
What can I do?
<html>
<head>
<title>Title</title>
<script>
<!--
function myFunction (myObject)
{
myObject.nextSibling.innerText = window.event.type;
}
-->
</script>
</head>
<body>
<div onClick="myFunction(this)" onMouseOver="myFunction(this)" onMouseOut="myFunction(this)">Do me...</div><div>...</div>
</body>
</html>
Thank you in advance