PDA

View Full Version : close window function


cja
10-15-2002, 10:03 PM
hi,
this may be a very begginer q but still i need an answer so if anyone can help....
im opening a new window for a site that incorporates an image gallery, the newly opened window operates using 3 frames (one title, one nav, one content). i need a button to close this window once the user has finished browsing - obviously this button must be placed in one of the frames - so i have done this using the standard:
window.close()
function.... but it doesnt work... its fine if the window needing to be closed is comprised of only one frame (or no frame as it's simply a window) but when the window is split into >1 frame it doesnt work??
many thanks to anyone who can help out :]

mordred
10-15-2002, 10:08 PM
top.close() perhaps?

cja
10-15-2002, 10:30 PM
m: thanks loads... simple and it works :] im off to the pub for last orders now!
cja