[Project_owners] Re: How to insert text as HTML?

Eric Jung grimholtz at yahoo.com
Mon Aug 29 19:26:48 EDT 2005


Isn't .innerHTML considered in poor taste, or am I the only one who
was trained that way?



--- Neil <neil at parkwaycc.co.uk> wrote:

> Michael Vincent wrote:
> 
> > I have a string with HTML code that I need to insert in a HTML 
> > document, inside a <div> element, but how should that be done?
> >
> > Lets take this example:
> >
> > "<a href="..">my link</a>"
> >
> > That should be inserted, as HTML, in a <div> element and it
> should be 
> > HTML i.e. a true link, not the above text!
> 
> Using .innerHTML seems to be the most straightforward way.
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


More information about the Project_owners mailing list