This is JavaScript that will pop-up a new window. Click here.
Here's the script:
Put the following within your page's "head" element:
<script language="JavaScript">
<!--
function open_new_window(URL,Name,features){
window.open(URL,Name,features);
}
//-->
</script>Put the following in the body of your HTML page where you want your link to appear:
<a href="#here" onClick="open_new_window('new_win.html','newwindow','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,width=400,height=400')">Click here.</a>
Notes:
- The "#here" is a dummy link that you need as a place holder in your link element. The actual page that this script links to is called 'new_win.html' and the link is contained in the Javascript. You'll need to change that part of the script to include the name of the file you want to open in the pop-up window.
- You can change the width and height of the window that opens as well as change the values for toolbars, menus, and scollbars. The values can be yes, no, or auto.
- Be very careful about checking upper and lower case letters and where double and single quotation marks are used around arguments and values.