File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem closing browser window on Firefox

 
Minh Nam
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi my friends,

I am using this code snippet to close browser window:



The code is working perfectly on IE.
On Firefox, if the page contains that script is on local machine, it is working perfectly as well.
However, if the page comes from a remote server, Firefox shows an error message:

Error: A script from "http://localhost:9898" was denied UniversalBrowserWrite privileges.


Does anyone have a workaround?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot close any window that you did not open with window.open().
 
Minh Nam
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:You cannot close any window that you did not open with window.open().


OK. Thanks a lot.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic