spacer
Yehuda Shiran October 11, 1999
Loading a New Document
Tips: October 1999

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Google Going Native With Chrome
Mozilla Fixes Firefox Flaws as 3.5 Release Nears
Microsoft and Novell Still Bosom Buddies

Loading a new document with JavaScript is very easy:

location.href = "http://www.intel.com/";

The location object is a property of the window object, so if you want to change the URL of a different window or frame, all you have to do is specify the desired object. For example:

parent.frames[1].location.href = "http://www.intel.com/";


People who read this tip also read these tips:

Look for similar tips by subject:

webref The latest from WebReference.com Browse >
XML and PHP Simplified · Creating a ASP.NET Contact Form · Data Filtering with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Intel to Host Live Nehalem Q&A · 12 Tips to Troubleshoot Network File-Sharing · 10 Tips for Selling on Kijiji