I have a div
div id='srch'
which has a calculated height of 7000px, how to set the height of another div to the same on window.load
div id='set_me'
document.getElementById('set_me').style.height = document.getElementById('srch').offsetHeight + 'px';
document.getElementById('set_me').style.height = document.getElementById('srch').offsetHeight +'px';
if the possibility of srch height ever changes, it will always match
Source: https://habr.com/ru/post/1765672/More articles:Вождение нескольких браузеров, которые взаимодействуют друг с другом - seleniumThe Nullable DateTime parameter is never bound when an action is called - datetimeПередача значений поплавка по TCP/IP и повреждение данных - floating-pointUnable to instantiate istring_iterator using wistringstream - c ++about malloc () and free () in C - cdangling pointer, the reason for the change in value after free ()? - cHelp convert Python application to C # - pythonFinding a Binary Tree Border - algorithmImproving sbt doc generation - scalaSeparating from software - documentationAll Articles