Topic awaiting preservation: Appending HTML somewhere.... anywhere... (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 10-19-2002 17:59
Let's say we have a DIV... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-19-2002 18:06
Yeah, document.write only appends to the document if it's executed while the page is still loading. |
Bipolar (III) Inmate From: |
posted 10-22-2002 00:26
OK, that's cool and all. code: <a href='JavaScript:void(0);' onclick='addStuff()'>Add a new row</a>
code: function addStuff(){
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-22-2002 01:10
Yeah. It's longer, I know. But you can make use of the return value of Document.CreateElement and Element.appendChild: |