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

Discussion in 'Javascript' started by virendra.amritkar@gmail.com, Jun 29, 2007.

  1. Guest

    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
     
    , Jun 29, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Casey Hawthorne
    Replies:
    1
    Views:
    757
    Arne Vajhøj
    Mar 18, 2009
  2. Replies:
    0
    Views:
    339
  3. Amanda H.
    Replies:
    4
    Views:
    121
    Amanda H.
    Feb 11, 2006
  4. sonic
    Replies:
    5
    Views:
    313
    Randy Webb
    Jul 11, 2006
  5. libsfan01
    Replies:
    5
    Views:
    273
    Jeff North
    Dec 20, 2006
Loading...

Share This Page