calling javascript function within <TABLE> tags

  • Thread starter Thread starter Markusek Peter
  • Start date Start date
M

Markusek Peter

How can I call JavaScript function within <TABLE> tags.

I've got <table width="here should be return value from js script">

Thank you.
 
You can use the document.write method in Javascript to write the entir
string in JS

Ex :

<script language = "Javascript">
var tblWidth = 100 OR tblWidth=GetWidth() --JS function

document.write ("<table width=" + tblWidth + " border=0>")
document.write ("<tr>.........</tr>")
document.write ("</table>")

</script>

Markusek said:
*How can I call JavaScript function within <TABLE> tags.

I've got <table width="here should be return value from js script">

Thank you.

ajaymehr
 
Back
Top