|
Accept Focus Until Closed
|
Other links at JavaScript > Tutorials > Windows and Frames |
| 1. |
Browser Window Dimensions
|
|
|
Two tiny functions that return the available width and height inside the browser window. These functions can be used as variables and as the dimensions are calculated every time they are used, your script will always be using the current window size no matter what the user does to the window.
|
| 2. |
Browser Window Dimensions
|
|
|
Two tiny functions that return the available width and height inside the browser window. These functions can be used as variables and as the dimensions are calculated every time they are used, your script will always be using the current window size no matter what the user does to the window.
|
| 3. |
Browser Window OffSets (scroll compensator)
|
|
|
These two handy functions are useful when you are trying to keep a dynamic element in view or find if the user has scrolled the page by returning the number of pixels the page has been scrolled.
|
| 4. |
Breaking out of frames
|
|
|
Want to make sure your web pages are not included in other website frames? Well use this break_out_frame code to stop the madness.
|
| 5. |
Scrolling window to any position
|
|
|
With this method you dont have to store or calculate the position to which you need to scroll you window. Very useful technique for chat applications or for dynamic content windows.
|
|
|