October 11, 1999 - Loading a New Document | WebReference

October 11, 1999 - Loading a New Document

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

Yehuda Shiran, Ph.D.
Doc JavaScript

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/";