By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,064 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,064 IT Pros & Developers. It's quick & easy.

How do you add HTML elements dynamically?

P: n/a
I read about a function that allowed you to add HTML elements with
javascript, but I don't remember the name or syntax.
If anybody knows please respond, thanks.

Jan 10 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
mo********@gmail.com wrote:
I read about a function that allowed you to add HTML elements
with javascript, but I don't remember the name or syntax.
If anybody knows please respond, thanks.


RTFFAQ. <URL:http://jibbering.com/faq/>
Jan 10 '06 #2

P: n/a
I don't want the .innerHTML property, I know about it, there's a
function to create them, I didnt see anything on that....

Jan 10 '06 #3

P: n/a
mo********@gmail.com wrote:
I don't want the .innerHTML property, I know about it, there's a
function to create them, I didnt see anything on that....
Search the archives for document.createElement, there are many examples:

<URL:
http://groups.google.co.uk/group/com...t=0&scoring=d&

--
Rob
Jan 10 '06 #4

P: n/a
Thanks so much

Jan 10 '06 #5

P: n/a
Also how do you insert it after making it? insertNodeBefore() or
something?

Jan 11 '06 #6

P: n/a
mo********@gmail.com wrote:
Also how do you insert it after making it? insertNodeBefore() or
something?


RTFM!
Jan 11 '06 #7

P: n/a
I use DOM Javascript to create HTML.
For more information you look the following link
http://www.howtocreate.co.uk/tutoria...?tut=0&part=25

Jan 11 '06 #8

P: n/a
Thomas 'PointedEars' Lahn said the following on 1/11/2006 6:29 AM:
mo********@gmail.com wrote:

Also how do you insert it after making it? insertNodeBefore() or
something?

RTFM!


<quote>
If you do not have something intelligent to say, you should just shut up.
Unless you deliberately try to make a fool of yourself, of course.
</quote>

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 11 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.