I\'ve got the following code in a website:
window.onload = resize; window.onresize = resize; function resize(){ heightWithoutHeader = (window.innerHeight -
If it's really in that order, it's definitely not going to work. You can't assign a function to an event handler before the function itself is declared.