| Begin by creating a Javascript function
and place it within the <head></head> tags
of your HTML document:
Example Code:
<head><title>Document Title</title>
<script language="Javascript" type="text/javascript">
<!-- Hide from non-Javascript browsers
function windowOpen(url)
{
open(url, "remote", "directories=no, location=no,
menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, width=400,
height=400");
}
// -->
</script>
</head>
Opening the Remote
Window
There are three ways to accomplish
this:
<a href="javascript:windowOpen('window1.html')">Click
Here</a>
or
The following variation opens the remote window and
updates the original window -
<a href="index.html" onClick="windowOpen('window1.html')">Click
Here</a>
or
<form>
<input
type="button"
value="Click Here"
onClick="windowOpen('window1.html')"
name="button">
</form>
The Results:
Click
Here
or Click
Here
or |