Şu anda bakım nedeniyle sitemiz kısıtlı işlevsellik sunmaktadır. Mevcut makaleler sorununuzu çözmediyse ve bize soru sormak isterseniz Twitter’da @FirefoxSupport hesabından ve Reddit’teki /r/firefox subreddit'inden destek gönüllülerimize ulaşabilirsiniz.

Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Daha Fazlasını Öğren

Is it possible in firefox to close a browser window/tab using java script without modifying the configuration settings? If YES, please let me know.

  • 3 yanıt
  • 7 kişi bu sorunu yaşıyor
  • 15 gösterim
  • Son yanıtı yazan: cor-el

more options

Requirement: On click of button, I want the browser window to be closed.

Solution: I am calling below java script on "onClick()" event of button.

function close_window() { window.close() }

This works in internet explorer but not in Mozilla Firefox. What is the reason behind it. Is there any way out to close the browser window in Mozilla Firefox?

Requirement: On click of button, I want the browser window to be closed. Solution: I am calling below java script on "onClick()" event of button. function close_window() { window.close() } This works in internet explorer but not in Mozilla Firefox. What is the reason behind it. Is there any way out to close the browser window in Mozilla Firefox?

Tüm Yanıtlar (3)

more options

You can only close windows via JavaScript that have been open via a script window.open() call.

more options

Hey! I know that. However, it is not working on Mozilla Firefox 3.0+. Is there any other way to close the browser's window on button click?

more options

Can you post a link to a page that opens a pop-up window where a close button doesn't work?

Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).

  • Do not click the Reset button on the Safe mode start window or otherwise make changes.