Topic Areas
Free Scripts
Information
Resources
Tutorials
Information
Search
Help Forums
Contact
Link to Us
Submit Script
Privacy Policy
More Resources
Free Stuff
Web Resources
Other Links
PageResource.com: Learn HTML
Just Free Stuff
JavaScript City
Frame Redirector

Script Introduction

This script will redirect a viewer to your main page if they load one of your interior pages without your frame navigation.

Cut and Paste Code: HEAD Section
This code should be placed between the <head> and </head> tags.

Installation Instructions

  1. Paste the HEAD Section code from above between the <head> and </head> tags on your page.
  2. Find the matching lines below in the script and change the text in red to the URLs and text you wish to use:

    top.location="http://yoursite.com";

    document.write("<center><b>This page is part of a frameset. You will be redirected to our main page in 10 seconds so you can use our navigation, or click <a href='http://yoursite.com'>here</a> to go now.</b></center><p>");

  3. Check the Format Window to be sure you do not have one single line of code, or too many line breaks in the code.

Example

N/A

JavaScript Book
JavaScript: A Beginner's Guide
by John Pollock
What's New
Simple Searchbox script added.
More...
Web Xpertz
Find more JavaScript tools and resources at WebXpertz City! Click one of the links above to browse the various attractions within the city.