add a close window link to a pop up window

wxdqz

New Member
What I need to know is how to add a close button or link into a pop up window (without using a separate .htm file for every pop-up)
ex:
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=300');");

}

then, in the body of the page it links an image to pop up a larger image

<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:popUp('images/large/leaf.jpg')"><img src=http://www.webdeveloper.com/forum/archive/index.php/"images/thumbs/bw_leaf.jpg" width="200" height="199" name="large_bwleaf" border="0"></a>

With the pop-up window open with the new large image, it nees a "close this window" link.

Can you help?
 
Back
Top