<script>
function obj1(){}
alert(obj1.name);
var obj2 = function(){}
obj2.name = 'obj2';
alert(obj2.name=='');
</script>
I have tested the code in Chrome, ff, safari
But IE9 don’t have this property .
question is where I can read documents to find all this kind of situations ?
The Mozilla documentation says this:
So, it’s a non-standard feature that is implemented by some browsers. As there is no standard to dictate how it should work, the implementation is likely to differ between browsers.
ref: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function
The Microsoft and Mozilla documentations are pretty complete, and you will find any standard feature in either of them. If you find a non-standard property like this, it will typically be documented only for the browser that does support it.
The definitive resource for the Javascript language is of course the EcmaScript ECMA-262 standard, however it’s a lot more complicated to read than the documentation for the implementations.
For a feature in the DOM (HTML, CSS, Javscript interface), it’s the W3C organisation that specifies the standards.