Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get the value of css properties js

const style = getComputedStyle(element)

const backgroundColor = style.backgroundColor
console.log(backgroundColor) // rgb(0, 0, 0)

Source by zellwk.com #
 
PREVIOUS NEXT
Tagged: #css #properties #js
ADD COMMENT
Topic
Name
6+8 =