Escaping hyphen on javascript's getElementbyId

Juliopp

New Member
I want to pass -webkit-background-clip property with javascript.Because of the hyphen at start, I cant seem to get it right.Tried it with [, ", ' etc. How do I escape dash?\[code\]document.getElementById("menu").style.-webkit-background-clip = "text";\[/code\]
 
Back
Top