But if you're comfortable with a little more complicated code, it's also easy to use a JavaScript function to control the size and placement of the new browser window. So when visitors using Netscape click on an external link, your Web site is completely obscured. Veteran users are used to this effect, but it can confuse beginners. In this case, it's even more important to control the window's size and placement. JavaScript Syntax Use the window.open method to open a new browser window and define its content, size, and location.
Features tells the browser where to place the new window and defines the size.
Even if you don't specify a Target attribute to give the new window a name, you must include a placeholder - an empty string. Although you can simply include the JavaScript code inside the link, it's better to write it as a function. Then, you can call the function as many times as you want on your Web page and still have the links open in the same browser window. The value of this variable will be stored in newContent . The name of the new window is nextWin and it will be located in the top right-hand corner of the page.