Here's an update.
I figured out how to add a link to a dynamically created element.
Now, a new question arises, how to trigger a javascript event
(onMouseOver in this case)
// create a DIV element
var div = document.createElement("div");
// create some text for it
var showTxt = document.createTextNode("show more data about marketing
strategy");
// append the text to the DIV
div.appendChild(showTxt);
// initially not show the text
div.style.display = "none";
Now, what I want to do is, onMouseOver, show the text, attempted the
following code to no avail.
div.setAttribute("onMouseOver", "javascript:div.style.display =
'inline'");
What's wrong?
Many thanks.
Please leave an attribution line for each quotation level.
I am sure someone has told you this before.
All right.