Connecting Tech Pros Worldwide Help | Site Map

How to Close a frameset

Newbie
 
Join Date: Apr 2009
Posts: 11
#1: Sep 17 '09
I have created a html page which contains two frame in frameset. i want to close a second frame only. i tried with window.close but not use.

i used parent.window.close() in this whole page gets closed.. Could u help me...



Thanks & Regards


Sharvesh Visweswaran
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Sep 17 '09

re: How to Close a frameset


since frames (which btw are ugly) are only part of a window not a window itself, you cannot use window.close(). in case of an iframe you can remove it using DOM. otherwise you can do nothing without completely changing the frameset.
Newbie
 
Join Date: Apr 2009
Posts: 11
#3: Sep 17 '09

re: How to Close a frameset


we can use this code
Expand|Select|Wrap|Line Numbers
  1. window.top.location="index.htm";
Reply