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: