This sounds like an issue with the sandbox, try using unsafeWindow instead of window to test/confirm this.
unsafeWindow:: http://wiki.greasespot.net/UnsafeWindow Sandbox stuff:: http://wiki.greasespot.net/Sandbox http://wiki.greasespot.net/Greasemonkey_Manual:Environment If it works using unsafeWindow then I suggest that you use one of the alternatives:: http://wiki.greasespot.net/Category:Coding_Tips:Interacting_With_The_Page On 4 March 2010 04:34, gin.lee <[email protected]> wrote: > Within a script of greasemonkey, I use window.open(url, "_titlename") > to open a url in a specific window (always exists) titled > "_titlename". So everytime when I run that script, the given url will > be opened in the same window. However, if the close the current window > running that script first and keep the one titled "_titlename" opened, > and then create a new page to run the script again. In this case, even > the window titled "_titlename" is still there, the window.open(url, > "_titlename") will open the url in a new window instead. Is this a > bug? > > Well, I try to write a pure javascript to test the problem, in the > javascript, even you close the current HTML running that script and > open again, if only the window titled "_titlename" still there, > window.open will still use that window to open the url. I am wonder > how to fix that problem in greasemonkey? > > -- > You received this message because you are subscribed to the Google Groups > "greasemonkey-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/greasemonkey-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
