function rownaj() { h1 = document.getElementById('lewy').style.height; h2 = document.getElementById('prawy').style.height; if (h1<h2) { document.getElementById('lewy').style.height = h2; } }
A w znaczniku body dałem onLoad="rownaj();". Problem wygląda tak: nie działa! Dlaczego?