Guest - Rodrigo - Posted February 6, 2004 Report Share Posted February 6, 2004 Preciso de um javascript que feche janelas com frames, por favor se alguém souber como fico grato com a informação.Obrigado Quote Link to comment Share on other sites More sharing options...
0 diraol Posted February 6, 2004 Report Share Posted February 6, 2004 você vai colocar ele num botão???<input type=''button" onClick='window.opener=self;self.close()'>isso não funciona????? Quote Link to comment Share on other sites More sharing options...
0 Guest - Rodrigo - Posted February 6, 2004 Report Share Posted February 6, 2004 Não é um botão mas eu já saquei o script, valeu.... Quote Link to comment Share on other sites More sharing options...
0 diraol Posted February 6, 2004 Report Share Posted February 6, 2004 beleza... Quote Link to comment Share on other sites More sharing options...
0 Guest - Rodrigo - Posted February 6, 2004 Report Share Posted February 6, 2004 SÓ TEM UM PROBLEMA !O script não funciona !!!!Valeu!!!Rodrigo Quote Link to comment Share on other sites More sharing options...
0 diraol Posted February 6, 2004 Report Share Posted February 6, 2004 qual o prob?? Quote Link to comment Share on other sites More sharing options...
0 sparrow Posted February 6, 2004 Report Share Posted February 6, 2004 O script acima está tentado fechar o frame atual, em vez de fechar o parentpor isso o script não faz nadaTenta isso aqui (foi a solução q eu achei):<script>function fecha(){window.parent.document.write('<'+'script>'+'opener=self;'+'self.close()'+'<'+'/script>')}</script><input type="button" onclick="fecha()" value="fecha"> sparrow Quote Link to comment Share on other sites More sharing options...
0 Rogério Martins Posted February 6, 2004 Report Share Posted February 6, 2004 Experimenta esse aqui<a href="#" onClick="javascript:top.window.close()">R" Quote Link to comment Share on other sites More sharing options...
0 diraol Posted February 6, 2004 Report Share Posted February 6, 2004 é o que o sparrow passou mesmo.... esqueci do 'parent'...... Quote Link to comment Share on other sites More sharing options...
0 Guest - Rodrigo - Posted February 7, 2004 Report Share Posted February 7, 2004 Desculpa demorar a responder, eu vou testar esses sctipts aqui, caso dê errado eu te dou toque. Beleza ?Valeu Quote Link to comment Share on other sites More sharing options...
0 diraol Posted February 7, 2004 Report Share Posted February 7, 2004 opa... sem problemas Quote Link to comment Share on other sites More sharing options...
Question
Guest - Rodrigo -
Preciso de um javascript que feche janelas com frames, por favor se alguém souber como fico grato com a informação.
Obrigado
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.