The Java Scriptorium

New Browser Windows


Description

Opens a file in a new window or creates a new empty one. Also controls toolbar, status bar, etc. Try using: toolbar location, directories, status, menubar, scrollbars, resizable, copyhistory, width=pixels, height=pixels

Example

Code

In the <head> section of your document:

<script language="JavaScript">
function WinOpen() {
   msg=open("jswindows.html","DisplayWindow","toolbar=no,directories=no,menubar=no");
}
</script>

In the <body> section of your document:

<form><input type="button" name="Button1" value="Push me" onclick="WinOpen()"></form>

Return to the Java Scriptorium.