New Window JAVA Script

 

This script allows links in your page to cause a popup new IE window to appear, and will also jumpt to a bookmark in that file.  It is excellent for Glossaries.  Here's how to use it:  at the top of the HTML file, just after the Meta Tags and before the <Body> statement, insert the following JAVA script:

<SCRIPT language=JavaScript>
<!--
function n_window(theurl)
{
// set the width and height
var the_width=700;
var the_height=500;
// set window position
var from_top=20;
var from_left=20;
// set other attributes
var has_toolbar='yes';
var has_location='yes';
var has_directories='yes';
var has_status='yes';
var has_menubar='yes';
var has_scrollbars='yes';
var is_resizable='yes';
// attributes put together
var the_atts='width='+the_width+',height='+the_height+',top='+from_top+',screenY='+from_top+',left='+from_left+',screenX='+from_left;
the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status='+has_status;
the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;
// open window
window.open(theurl,'',the_atts);
}
//-->
</SCRIPT>

Then later, in the body of the HTML file, insert lines such as this one:

href="javascript:n_window('http://www.infocellar.com/networks/test2/c.htm#Core')">core</A>. 

The effect - this will cause a New IE Window to open up, and will automatically go to the page, "c.htm" and will be shown scrolled down to the bookmark, "core"