You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.
Call Function with Random Timer
Example for adding items into combo by using Win32 API. Written by Nir Sofer
Detect Javascript On/Off, With Notification: If JavaScript is on the user gets a welcome message. If off, the user is instructed to turn it on.
Good programmer comments their code so that anyone can know what is happening in code. Its easy for others to edit the code.
JavaScript Code to show a message box or a alert window when page opens
A javaScript loop example with Do While loop
Creating and maintaining an effective JavaScript toolbox can greatly reduce development time. This script will show you how to include specific snippet modules on individual pages.
A javaScript loop example with Break a loop
This JavaScript code within your web page HTML between your HEAD tags
Cufon 101
Get the current title of the page using javascript and store it into a variable
The JavaScript is just a function called redirect, and is requesting that a variable be passed to it.
In Firefox, Safari and Chrome, this script only works if the window was originally opened using Javascript (window.open function)
Allows you to take a user to the previous page they were on using a button
Attempts to close the current window. You can use it for popups
Optimize your website loading time by compressing files into smaller size.
The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs.
The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs:
An example code for JavaScript Jump Menu