I go through following links
How can I make JavaScript make (produce) new page?
I want to add html elements dynamically with JavaScript inside a div
but I donot want to follow 2nd link because my javascript code will become very big and complex. Is there a way so that I can add html elements using one line of code as done in 1st link.
I donot want to use JQuery.