Calling a function from a window on the frame which opens it

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

    #1

    Calling a function from a window on the frame which opens it

    Hi all,

    From a web page, I am opening a window from my javascript function
    "openMyWindow() ". After finishing work in that window i want to execute
    another javascript function on the web page "finishMyWindow ()". My question
    is how can I call this function from my window? I tried using
    parent.finishMy Window() but it did not work.

    Thanks


  • Dietmar Meier

    #2
    Re: Calling a function from a window on the frame which opens it

    Rizwan wrote:
    [color=blue]
    > I tried using parent.finishMy Window() but it did not work.[/color]

    if (opener && !opener.closed && opener.finishMy Window)
    opener.finishMy Window();

    ciao, dhgm

    Comment

    • Rizwan

      #3
      Re: Calling a function from a window on the frame which opens it

      thanks. it wroks like a charm.


      "Dietmar Meier" <usereplytoinst ead@innoline-systemtechnik.d e> wrote in
      message news:36cegaF509 4d8U1@individua l.net...[color=blue]
      > Rizwan wrote:
      >[color=green]
      > > I tried using parent.finishMy Window() but it did not work.[/color]
      >
      > if (opener && !opener.closed && opener.finishMy Window)
      > opener.finishMy Window();
      >
      > ciao, dhgm[/color]


      Comment

      Working...