Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript background in js-created markup / style

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #207887
    amc
    Participant

    As an extension of the post https://css-tricks.com/forums/topic/backgroundcolor-not-recognized/ I have dynamic menus, where elements (svg) are created on the fly, using js. So they are the mouseover and mouseout event handlers, which mainly act changing the background colour.

    In this situation, neither the e.style (addressed to inline styles) or getComputedStyle (CSS styles) are usable. How can I read/set backgrounds previously set by js (rather than inline or css)?

    thanks

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.