I need get the size and position of form. And then make a div with the same size and position. But I can't get the size of form.
var form = document.getElementsByTagName("form");
for (var i = 0; i < form.length; i++) {
console.log(form[i].offsetHeight);
}
I try with offsetHeight and clientHeight, but always the result is 0.