How do I spawn html elements through javascript? I mean something like this:
The user clicks the link, labeled 'make a box'. Each time he clicks it, a new 'box' appears (as many times as he want, and each time it will be another 'box', while the previous remains onscreen), containing some text and some images and the like. It's a fairly complex HTML I have, and I want it to be 'spawned' via user interaction, and killed the same way.
How do I do this?
The user clicks the link, labeled 'make a box'. Each time he clicks it, a new 'box' appears (as many times as he want, and each time it will be another 'box', while the previous remains onscreen), containing some text and some images and the like. It's a fairly complex HTML I have, and I want it to be 'spawned' via user interaction, and killed the same way.
How do I do this?
