Javascript : Write
- Started
- Last post
- 5 Responses
- tobor
Need to write to a table cell using javascript... anyone know how?
- versa0
document.write("");
document.write("");
document.write("");
document.write("");
document.write("");
document.write("");
- tobor0
Forgot to mention.
From the Head area...
- versa0
document.write("<table border='1' cellpadding='8' ");
document.write("<tr ");
document.write("<td ");
document.write("</td ");
document.write("</tr ");
document.write("</table ");*add closing brackets for elements*
- versa0
ah screw it........keep trying to trick this thing.......but it's not working for me
- meph5040
you say you need to write to a table but from the header.
if you want to use Javascript in the body you have to call it.
I would suggest making a function in the header
function writemsg()
{
msg ="write this to table";
document.write(msg)
}then in the body call it
[table]
[tr]
[td]
[script] writemsg() [/script]
[/td]
[/tr]
[/table]replace [ with
if that doesn't clear it up give more details so that I can better understand the issue.