Close window within frameset

windows

Guest
Hi,<br />
<br />
I have a webpage set up with frames (banner, index & main body frames) and would like to include a link to close down the window.<br />
<br />
I've tried the following code in each of the 3 frames but the command is ignored:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:self.close()" target="_self">Close window now</a><br />
<br />
Any ideas?<!--content--><a href=http://www.webdeveloper.com/forum/archive/index.php/"#" onclick="top.close(); return false;">Close</a> though it won't work for users with JavaScript disabled.<!--content-->Hi Pyro.<br />
<br />
Thanks for the code. Where should this code be placed. I put it in the contents frame but couldn't get it to work. What am I missing?<!--content-->After a few hours sleep, tried the code again and it works perfectly. Have no idea what I was doing wrong before but ... who cares!!<br />
<br />
Thanks for your help.<!--content-->Great! Glad I could help... :)<!--content-->
 
Back
Top