How-to articles, tricks, and solutions about WINDOW

How to Check a Webpage is Loaded Inside an iframe or into the Browser Window

Read this JavaScript tutorial and find a working code for checking whether the webpage is loaded inside an iFrame or directly into the browser window.

How to Check for a Hash Value in a URL Using JavaScript

Read this tutorial and learn the fastest and simplest way of checking for a hash value in the URL using the window.location.hash method in JavaScript.

How to Check if User Has Scrolled to the Bottom of the Page

Read this tutorial and learn information about jQuery method that is run for checking whether the user has scrolled to the bottom of the page or near to it.

How to Create a Scroll Indicator with JavaScript

Know how to create a scrollbar indicator element on your webpage which indicates how far the user has scrolled down the page. Use a little JavaScript code to animate your webpage bar.

How to Execute a JavaScript Function when You have Its Name as a String

Read this tutorial and learn about the safe method of calling a function when you have its name as a string. Also, read about why you should not use eval().

How to Get the Browser Viewport Dimensions

Read this JavaScript tutorial and learn information about two sets of properties that are used to obtain the height and width of the viewport dimension.

How to Make JavaScript Execute After Page Load

Read this JavaScript tutorial and learn which are the two most used methods of making the script execute as soon as the webpage has completely loaded.