Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initializing a function...

Status
Not open for further replies.

GDX

Programmer
Jun 4, 2000
186
US
I dont know much about javascript but I have a function called Init() that initializes on <body onload> BUT i want to initilize it within a table how do I go about calling this function into a table and not using a method of HTML? I am clueless when it comes to javascript! Thanks Gordon R. Durgha
gd@vslink.net
 
I don't know why - unless you are writing to the page - but
you can in fact insert script tags anywhere you like in the page.

...
<td id='dataCell'>
<script language=&quot;JavaScript&quot;>
document.write('content')
</script>

</td>
...


This data will be written to the table on the first pass thru the code - slightly before onLoad, I suppose. Subsequent writing could be done using the innerHTML property of the cell.

b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top