How to set dynamic string value using javascript?

I have this code, but since I use "", a.innerheightit is not replaced by its value. Is it possible to make this dynamic?

a.style.webkitTransform = "translate(0,a.innerHeight)"
0
source share
1 answer

I'm not sure what you are asking ... could it be?

a.style.webkitTransform = "translate(0," + a.innerHeight + ")";
+8
source

All Articles