How to write to the variable height of the element?
var el = document.getElementById("id").style.width How to write to the variable height of the element?
var el = document.getElementById("id").style.width Using the offsetHeight and offsetWidth . Example:
var el = document.getElementById("id").offsetHeight Source: https://ru.stackoverflow.com/questions/103432/
All Articles