I have a page with two buttons, one Button opens a popup window with the next function:

```
function MM_openBrWindow(theURL,winName,features) { //v2.0
  my_window=window.open(theURL,winName,features);
}

```

and I need to detect from that window(my\_window) when the second button in the parent page is clicked and raise an alert.

How can I do that?

Thanks in advance.

Carlos