467,911 Members | 1,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,911 developers. It's quick & easy.

calling javascript function within <TABLE> tags

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

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

Thank you.
Nov 18 '05 #1
  • viewed: 1594
Share:
1 Reply

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 Peter wrote:
*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
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message375096.htm

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by bearclaws | last post: by
61 posts views Thread by Toby Austin | last post: by
2 posts views Thread by Leo Duran | last post: by
5 posts views Thread by Ken Dopierala Jr. | last post: by
1 post views Thread by prefersgolfing | last post: by
1 post views Thread by James Coleman | last post: by
13 posts views Thread by Davo | last post: by
reply views Thread by =?Utf-8?B?R3JlZw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.