With javascript you can do more or less anything inside the body tag, either e.g. by string-manipulating the body's innerHTML or with pure DOM manipulation - by creating and inserting elements where you want them. Or even combining the 2 methods.
For instance you cauld create a div, assign it the body's innerHTML and then append the div to the body.
There are different ways to do it and different opinions about the best way to go.
Main Topics
Browse All Topics





by: sah18Posted on 2007-09-11 at 08:01:34ID: 19869210
When you say you want to do this programmatically, what programming language are you using to generate the html code?