In answering my question Pumbaa80 found a difference between calling open()
and window.open()
, try the following examples in Firefox (tested on 11.0):
http://jsfiddle.net/9kqp5/ (calls
open
; opens in new tab in FF, provided that the "Open new windows in new tab instead" setting is on, which it is by default)http://jsfiddle.net/HLbLu/ (calls
window.open
; opens in new small window)
But why on earth there is a difference? If I try the following example:
<script>
var a = 2;
function hello() { alert(this.a); }
hello();
window.hello();
</script>
Both variants of calling function hello
work exactly the same, including having the same this
!!!