Back

Pop-Up Window 003

 

Open Birdhouse  Close Birdhouse

 

This script offers an open and close link on the pop-Up Window.

Script instructions for <HEAD></HEAD> tags

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Paste between the <HEAD></HEAD> tags. -->

newWindow = null
function openWindow() {
newWindow = window.open("images/bh4.jpg","newWin","width=200,height=200")
}
function closeWindow() {
if(newWindow && !newWindow.closed) {
newWindow.close()
}
}

</SCRIPT>
 

Script instructions for <BODY> of the HTML Document

<A HREF="javascript:openWindow()">Open Birdhouse</A>&nbsp;&nbsp;<A HREF="javascript:closeWindow()">Close Birdhouse</A></p>
 

Paste script between the <HEAD></HEAD> tags.

Paste script where needed in the body of the HTML Document.


Copyright 2003 Ultimatephp.com