
November 10th, 2000, 07:41 PM
|
|
Junior Member
|
|
Join Date: Nov 2000
Posts: 12
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Okay, I am trying to get a javascript to run on a <td> tag when a page is created.
ex:
<td id=abc onload="bgColor = retrieveData('color')">
As far as I know, you cannot use onload on the <td> tag, but somehow I need to get the script to run when the page loads.
Unfortunately I cannot call this script on the <body> tag as an onload (like this: document.all.abc.bgColor = retrieveData('color')  becuase I am creating the page on the fly, and will not know how many <td>'s will be created, or their names.
Any ideas?
[This message has been edited by Kiefer27 (edited November 10, 2000).]
|