I need to assign a dynamic value to a variable. Specifically, I would like to assign the window width and detect if window has been resized.
To assign window width I know it would be as follows:
var windowWidth = $(window).width();
But I dont't know how to get window width when it has been resized, so that variable would always have the current window width.
Is that possible? I can't find the way to do that!
Than you very much in advanced!
Jur.