Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / June 2007



Tip: Looking for answers? Try searching our database.

if innerHTML  used twice then it replaces the contents i want it to display all the contents

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
virendra.amritkar@gmail.com - 29 Jun 2007 09:13 GMT
Hi,

getElementById('preview_center').innerHTML = "some code here"
if i called this ywice it replaces the contents or if i concatenated
that code i then called innnerHtml once then it looses its style.

plz reply
Erick Tedeschi - 29 Jun 2007 11:50 GMT
The contents is replaced.
For concat. use document.getElementById('preview_center').innerHTML +=
'more contents here';

On Jun 29, 5:13 am, virendra.amrit...@gmail.com wrote:
> Hi,
>
[quoted text clipped - 3 lines]
>
> plz reply
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.