8.3. Browser window(s) I

8.3.1. Opening single and multiple new window(s)

Browsers can interpret XHTML code and display them correctly on screen. They also provide a rich source for basic windows programming without the need for or understanding the use of compilers. From plain windows to fully functional Web browsing windows, from text files, XHTML pages, audio, and images to movie clips, all of them can be controlled with little effort. For example, the code

   <script> window.open()</script>

opens a new browser window (empty window) immediately. The code

   <script> window.open("http://www.microsoft.com")</script>

opens a browser window and loads the corresponding Web site (www.microsoft.com) into it. Basically, you can put any supported file ...

Get Practical Web Technologies 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.