Menu
i’m having a bit of trouble with this code:
function WindowSizeListener(){
var wWidth;
var wHeight;
wWidth = window.innerWidth;
wHeight = window.innerHeight;
window.addEventListener(“onchange”, ChangeSearchHeight(wHeight), false);
}
the error message i get from the firefox console says that it “can’t convert the JavaScript argument”. basically what i’m trying to do is retrieve the height of the window so i can pass it to a function that will change the height of an element based on the height of the window. any help is appreciated, thanks in advance.