Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

access css property using javascript


var element = document.getElementById('image_1'),
    style = window.getComputedStyle(element),
    top = style.getPropertyValue('top');

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #access #css #property #javascript
ADD COMMENT
Topic
Name
9+1 =