||View All MessagesBack to WebFX|
From: Erik Arvidsson
Sent: April 8, 2004
Subject: Re:dynamics objects
document does not have a property called innerHTML so that line is bogus.
alert( "running" );
var xyz = document.createElement("DIV");
document.getElementsByTagName("body").appendChild( xyz );
if ( xyz.addEventListener )
xyz.addEventListener( "mousemove", t1, false );
else if ( xyz.attachEvent )
xyz.attachEvent( "onmousemove", t1 );
xyz.onmouseover = t1;
You should also remember that you should create TBODY, TR, TD and text nodes to make the table complete.
Mikael: You do not need to set/reset innerHTML. Changing innerHTML is usually considered harmful because existing elements are detached from the document and new ones are created and therefore exisiting code might break. (See MS smart navigation which totally breaks pages that contains client side scripting.)