Active Client Pages: DOM Roots of the Window Phase
In this tenth part of a twelve-part series on Chrys's approach to Active Client Pages, we look at the factors that gave rise to the window phase. If you want to better understand this technology that allows your web pages to at least appear to load more quickly for your visitors, keep reading.
Active Client Pages: DOM Roots of the Window Phase (Page 1 of 5 )
A good way to learn is by asking questions. Now that we know some DOM features, we shall ask questions about them to see if they can help us with ACP. That is how we shall learn in this and the next part of the series. Remember I define ACP as the production of HTML pages at the client computer by the browser using web technology. The questions we shall ask will help us to achieve this goal.
How do I open a window from another window?
Assume that you have a browser window in front of you with a document. What code should be in that document such that, when an event (click a button) occurs, a new window will open? That is the question. We know that
returnRef = window.open(URL,name,specs,replace);
We have seen examples of this. returnRef is optional. The parameters have their meanings, which we have seen. This statement (or its modified form) should be in your script, in the document in the window that opens the new window.
When you open a window with the expression “window.open()”, you have a new window with default characteristics.