just use the following onClick-Event for your button:

<input type="submit" name="closewindow" value="close"
onClick="top.Windows.close('your_win_id');">

that schould do it :-)

regards,
michael

2007/4/26, Altamiro Rodrigues <[EMAIL PROTECTED]>:
> If somebody can me help with this problem I is thankful. I created the
> function below to open a URL being that in this URL it has a button to
> close, would like to know as I make for the clica o in this button the
> frame (Window) to close and to show to the page father.
>
>  function abrirUrl(url, titulo, largura, altura, themes) {
>
>         titulo = titulo != '' ? titulo : 'Não especificado!';
>
>         if( !largura ) {
>                 largura = 680
>         }
>
>         if( !altura ) {
>                 altura = 500;
>         }
>
>         if ( !themes ) {
>                 themes = "sky-off";
>         }
>
>                 // ARGUMENTOS PARA A CONSTRUCAO DA JANELA
>                 args   = {className: themes, title: titulo, width: largura, 
> height:
> altura, 'url': url, resizable: false, minimizable: false, showEffect:
> Element.show, hideEffect: Element.hide };
>
>                 win = new Window(Application.getNewId(),args);
>                 win.setDestroyOnClose();
>                 win.setConstraint(true, {left:5, right:5, top: 5, bottom:5})
>                 win.showCenter(true);
>                 win.toFront();
>
>
>
>  } // end abrirUrl().
>
> Atenciosamente,
>
> Altamiro Rodrigues
> MSN / E-mail: [EMAIL PROTECTED]
> Celular: 75 8816 - 9835
> Residêncial: 75 3224 - 0442
>
> _______________________________________________
> Javawin mailing list
> [email protected]
> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
>

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to