Forums

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

Home Forums JavaScript getComputedStyle on pure Javascript

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #149334
    Anonymous
    Inactive

    getComputedStyle object doesn’t work in Mofilla Firefox and Apple Safari, But it works in IE, IE’s old versions too (IE 6).
    How to fix this problem in Firefox and Safari?

    #149342
    Paulie_D
    Member

    Perhaps you are using it wrong.

    Could we see some code?

    #149368
    Anonymous
    Inactive

    I wrote getComputedStyle(document.getElementById(element), margin).margin; but it didn’t work in mozilla and safari browsers, but I fix it 5 minutes ago and write function for working all browsers (browsers version), all browsers too (IE 6, firefox 3.0);

    If this code need someone, here is: https://gist.github.com/Developer9621/6478490

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