O'Reilly logo

Practical Web Technologies by V. Lau, P. K. Yuen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required