close frame with javascript

wxdqz

New Member
hi -

I'm wondering if anyone has figured out a way to close one frame in a frameset (one frame will have a link to close itself). And this has to work if the frames are loading files from different servers/domains.

have tried this, and some variations, from a frame called nav with frame named content:


<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"#" onclick="top.location.href=top.content.location.href;return false">close this frame<A>


but it only works when both frames are laoding files from the same server...

i am stumped.
 
Back
Top