Jump to content

Dynamic HTML Table


bilwebore

Recommended Posts

I am trying to make an HTML table for a website that will be dynamic. I am looking to have the result of a VB function become the TD, ie what shows up in the table cell. I understand the makeup of an HTML table with TR and TD tags, etc. But how can I have what goes into a cell in the table be the result of a function. Let's say the function goes as follows:<html><body><script type="text/vbscript">randomize()randomNumber=Int(100 * rnd())document.write("A random number: <b>" & randomNumber & "</b>")</script></body></html>How can I get randomNumber to become a TD element?Thanks in advance!Webby

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...