Click to See Complete Forum and Search --> : print to html, line the php echo function..


snaggy
09-27-2006, 02:46 PM
Is this possible by javascript?

Here's my problem:
I have a css box that often changes its height, and I want to make another element have the same height as this box. I used the DOM way to store its height in a javascript variable, but now? How can I use it? Does it exists any function similar to the php echo that writes smth in the html (I know it's a lot different...)

bye
thanks

snaggy

jvanamali
09-27-2006, 03:06 PM
you can use document.write to write html for example

document.write("<Table>");
document.write("<TR>");
document.write("<TD>Some data</TD>");
document.write("</TR>");
document.write("</Table>");

snaggy
10-07-2006, 12:27 AM
Thanks!
I promise I'm gonna buy a book and stop making stupid questions everywhere...

Maybe someone can suggest me some particular book? I though I'd read javascript:the bible but it's 5 years old maybe is out of date...

bye!!
snaggy