How to Close a frameset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • visweswaran28
    New Member
    • Apr 2009
    • 11

    How to Close a frameset

    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.c lose() in this whole page gets closed.. Could u help me...



    Thanks & Regards


    Sharvesh Visweswaran
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    • visweswaran28
      New Member
      • Apr 2009
      • 11

      #3
      we can use this code
      Code:
      window.top.location="index.htm";
      Last edited by gits; Sep 18 '09, 06:14 AM. Reason: added code tags

      Comment

      • msully725
        New Member
        • Jul 2010
        • 1

        #4
        script:
        parent.document .getElementById ("myFrameset"). rows = "*,0";

        html:
        <frameset id="myFrameset" >...

        Comment

        Working...