0

I have this code but since I use "" the a.innerheight does not get replaced by its value. Is it possible to make this dynamic?

a.style.webkitTransform = "translate(0,a.innerHeight)"
Factor Mystic
  • 26,279
  • 16
  • 79
  • 95

1 Answers1

8

I'm not sure what you're asking for... this maybe?

a.style.webkitTransform = "translate(0," + a.innerHeight + ")";
Greg
  • 316,276
  • 54
  • 369
  • 333