I am wondering if there is a method to allow javascript codes to be called everytime when the user resizes the window. The reason why I am doing this is because I am using a javascript to set the dimension for a div, and it must be dynamically resized every time the window size changes. Thanks for any suggestions!