Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

"javascript:window.close()" script doesnt work in firefox 3.6 and above It works in IE8 and used to work in earlier Firefox

  • 1 件の返信
  • 308 人がこの問題に困っています
  • 2 回表示
  • 最後の返信者: cor-el

more options

I am using <a href="javascript:window.close()"> to close the window at the completion of an online survey. I works OK in IE and used to work in Firefox. Now the script does not do anything in 3.6 and above . In IE it closes a window through a GUI

I am using <a href="javascript:window.close()"> to close the window at the completion of an online survey. I works OK in IE and used to work in Firefox. Now the script does not do anything in 3.6 and above . In IE it closes a window through a GUI

すべての返信 (1)

more options

In Firefox you can only close a window that was previously opened via JavaScript

See :

https://developer.mozilla.org/En/DOM/window.close
https://developer.mozilla.org/En/DOM/window.open