calling javascript function within <TABLE> tags

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.
 
A

ajaymehra

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top