Ancient Future Designs
Ancient Future Designs
Open New Window

First of all, let's try it!

This opens a new window with all the features.
Here's the script...
<FORM>
<INPUT type="button" value="New Window!" onClick="window.open('http://URL for new window','mywindow','width=400,
height=200,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,
copyhistory=yes,resizable=yes')">
</FORM>
All you need do with this script is put in the address for the page to be opened in the new window. I find that absolute addresses work, so I used
http://myurl.com/page.htm
I find this type of window handy to use for linked pages, as the viewer can then come back to your page which is still open.

This is for a simple window without the toolbars, etc.

Here's the script...
<FORM><INPUT type="button" value="New Window!"
onClick="window.open('http://URL for new window','mywindow','width=400,height=200')"></FORM>
As with the other script, all you need do is add in the URL of the page displayed in the new window.
To change the name displayed on the window, just change the value tag.

Now, if you're like me and like to have images used as links, check out the new window graphic below.

For this to work you first need to add some script to the <HEAD> of your page.
Here's the script to add...
<SCRIPT language="JavaScript">
<!--hide
function newwindow()
{
window.open('window3.htm','jav','width=440,height=200');
}
//-->
</SCRIPT>
Then to make the image work, you need to add the rest of the script to the <BODY> of your page.
Here's the <BODY> script to add...
<CENTER>&lt;A HREF="javascript:newwindow()">&lt;IMG SRC="javbut.gif" BORDER=0
HEIGHT=18 WIDTH=130>&lt;/A></CENTER>
I made my image centered, and with spaces of 5 above and below it.
All you need to edit for yourself is, the location of your new window in the <HEAD> java tag,
and the IMG SRC= in the <BODY> tag of the java. Don't forget to change the HEIGHT and WIDTH as well.