What am I doing wrong? I am after similar behaviour to firefox.
Thanks.
James
Opened with javascript how?
-Boris
on a test page I have both:
1. <a href="javascript:window.open('http://www.google.com', '',
'width=400');">javascript</a>
2. <a href="http://www.google.com" target="_blank">_blank</a>
The second one works as expected, opening a new window with the new
content in this new window. The first however opens the new window with
the attributes and url but the old window's content is replaced with
"[Object Window]"
Thanks.
That's the correct behavior, and should happen in any browser.
If you want to avoid it, put void() around the window.open call.
-Boris
Thanks.
It doesn't. The code you quoted replaces the old window with the text "[Object
Window]" in Firefox.
-Boris
Based on the chrome flags passed to the window creator.
Unless you're overriding the window watcher (which is highly not recommended).
The window watcher is what parses the feature string, etc.
-Boris
Oh, I see what you mean. Some of the elements in question need to have
particular classes. See the CSS at
<http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/content/xul.css&rev=1.87&mark=36-45#31>.
Scrollbars are handled a little differently, but that should Just Work, I would
think.
-Boris