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
  • #207887

    As an extension of the post 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 (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)?


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