When you open a toolbar with the toolbar script,
One of the nicest features about toolbars and display windows is that they are exactly the size one specifies - if you've spent hours getting some visual format right, you want people to see what you designed - and toolbars allow that. You could spend hours on precise calls determining exact XY locations and sizes of your images, and you can drive yourself crazy with tables... but I'd rather just do it by guts, and call it art. Calling a secondary window is a great way to size a window perfectly and allow the browser to do the formatting work for you.
toolbar = window.open(location.href ,'barWindow','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=120');there's this notation (location.href) - this controls the URL displayed in the new window. If you leave it as (location.href) it will simply copy the present URL to the pop-up window. If you write it as ("http://foo.bar.org/directory/page") it will load that page.
So, you say, so what? If in the page which is called into the pop-up, you include the line:
<a href="http://foo.bar.org/directory/page" TARGET="mainWindow">link</a>
then you'll get a window, without location, menubar, status, etc, exactly the same size as the window which called the toolbar, and this window will contain the page called by the link containing the TARGET statement.
This can be fun.
If, however, you use the TARGET= statement from HTML in the main browser window, you will create a pop-up or toolbar which has all of the function attributes as your main browser window, such as the location, status fields, menu bar, etc. This creates an additional drain on machine resources, and plus it's excessive clutter on the screen.