close pop up window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sandra Berland

    close pop up window

    Hi,

    I would like to know if it exists
    a script to permit a button to close
    a pop up window with frames
    (the button is in one of this frame so)

    thanks


  • Yann-Erwan Perio

    #2
    Re: close pop up window

    Sandra Berland wrote:
    [color=blue]
    > a script to permit a button to close
    > a pop up window with frames
    > (the button is in one of this frame so)[/color]

    <input type="button"
    value="close"
    onclick="top.cl ose();">

    When you have frames, the global "top" property refers to the frameset
    window (the "top" one), which is here the one you want to close. You
    just need to call the "close" method for that window.


    HTH
    Yep.

    Comment

    Working...