Filling Your Windows I: The location Object

Instead of specifying a URL in the window.open() method, you have several other ways to specify the contents of a new window object. The first of these ways is the simplest of the two: by using the new window's location object. Referring to the first example in this chapter, for example, instead of specifying Form1.htm as the first argument of the window.open() method, you could do the same thing by using the following after the new window is created:

self.MyWindow.location.href = "Form1.htm"

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.