title: How to find window restore in Javascript
body: <p>How to find the window state using javascript.Consider our application need to <code>alert('restor')</code> when browser unmaximize and also need to <code>alert('maximized')</code> when restore or maximize the browser.Can anybody please help me.</p>