Hi please, i want to ask you question.... please help me i did menu (on the left of webpage) when you click on the item ,the submenu of this item appeares on the right, using javascript but i had problem,if the page is opening and the user try to resize the window or change the resolution he must refresh the webpage to keep submenu position ,the question is: how can i keep the position of hte submenu without refresh the webpage?Is there function that refresh the page automatically when the window size chaneges?thanks alot
This page should help you -- you can write a function that you want executed whenever the page is resized (it can manually refresh the page, or better yet, simply re-execute your JavaScript code), then use the window.onResize event handler to execute your function.