how to copy all style attributes from one to another object

Discussion in 'Javascript' started by Gerrit Horeis, Aug 12, 2004.

  1. How can I copy all style sheet information from one object to another?
    I tried the following way but it did not work:

    object2.style = object1.style;

    do have to assign all stylesheet information by

    object2.style.color = object1.style.color;

    ?

    Thanks for your responds
     
    Gerrit Horeis, Aug 12, 2004
    #1
    1. Advertising

  2. Gerrit Horeis wrote:

    > How can I copy all style sheet information from one object to another?
    > [...]


    I have already answered that in your native language in
    de.comp.lang.javascript. You probably want to refrain
    from making multi-postings if you wish your postings to
    be read by a significant number of netizen in the future.


    PointedEars
     
    Thomas 'PointedEars' Lahn, Aug 12, 2004
    #2
    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. John Davison
    Replies:
    3
    Views:
    654
    John Davison
    Jul 22, 2004
  2. Kulbir
    Replies:
    2
    Views:
    11,054
  3. Replies:
    1
    Views:
    810
    Bertilo Wennergren
    Nov 24, 2003
  4. Ken Varn
    Replies:
    0
    Views:
    525
    Ken Varn
    Apr 26, 2004
  5. Sparhawk
    Replies:
    5
    Views:
    124
    Harag
    Aug 29, 2004
Loading...

Share This Page