Popup Window Scripts
Code:
Insert the following code between the
header tags.
<SCRIPT
language="JavaScript">
function openwin(url,name,width,height)
{ var win = window.open(url ,name, 'toolbar=no, width='+width+',
height='+height+', screenX=80, left=80, screenY=80, top=80,
directories=no, status=no, scrollbars=yes, resize=yes, menubar=no');
win.focus();}
</SCRIPT>
|
Insert this code where you want it to display in
the body.
<A href="javascript:openwin('window.html','newwindow',520,450);">Open
Window</A>
|
Next, insert this code between the header tags of the popup window.
<SCRIPT language="JavaScript">
function closewin(){self.close();}
</SCRIPT>
|
Then insert this code in the body of the popup window.
<A href="javascript:closewin();">Close
Window</A>
|
|