• 0
Sign in to follow this  
jnmoreno

Fechar Janela No Firefox

Question

Olá pessoal, estou desenvolvendo uma página e quero colocar um link pra fechar a janela do browser. Inseri o seguinte código:

<a href="javascript:window.close()" target="_top"><div style="text-align: center"><font color="Blue" size="5"><b>Fechar</div></font></b></a>

Pro IE ele funciona muito bem, porém no Firefox não acontece nada. O que estou errando?

Inté+ !

Juliano

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

December 4, 2004. Domain Direct is a registrar and like all registrars you can log on to their web site and administer a domain. Their logoff function does not work with Firefox. It invokes JavaScript to do a window.close() function which works on some web sites, but on this site it does nothing. The JavaScript console says "Scripts may not close windows that were not opened by script." It works under IE.  Also, after renewing a domain, the final web page has a button to click that takes you to your control panel. This button also does not work with Firefox.

http://www.computergripes.com/firefoxsites.html

Esta função num funciona no firefox!

sobre: http://www.javafree.org/javabb/viewtopic.jbb?t=9592

abraços

Share this post


Link to post
Share on other sites
  • 0

aqui comigo funciona na boa...

tenho uma página q abre um popup, nele coloquei um botão:

<input type="button" class="botao" value="Fechar Janela" onClick="javascript:window.close();">

aqui tá funfando assim!

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.

Guest
Answer this question...

×   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