Sign in to follow this  


Recommended Posts

Ola Amigos!

Para abrir uma nova janela coloco o seguinte codigo na janela "PAI"




<input type="button" value="janela" onClick="open('janela_filha.php', 'new', 'width=500, height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no')">




Até aqui tudo bem. a janela "Pai" continua aberta com a janela "FILHA" em cima da janela "PAI".

Como faço para quando o usuario clicar novamente na janela "PAI" a janela "FILHA" se fechar automaticamente?

Obrigado amigos!

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this