In comp.lang.javascript message <
[email protected]
Can any one tell me different functions or properties of javascript
which are gives different outputs on different browsers ?
As well as asking whether there is a dependence on browser name &
version, you should IMHO also consider whether there may be a dependence
on OS location or settings for the same browser version - if only to
avoid problems that it may cause.
Number.toFixed() has a browser-dependent bug - see FAQ.
The methods of Date which give Strings give undefined formats, varying
with browser and version and I'd not be much surprised by a location
dependence either (VBScript has dependence on OS settings); the effects
of input strings might vary.
Date.getTimezoneOffset() is necessarily dependent on apparent location,
of course.
For current dates, Date.getYear() can give at least 2 values, maybe a
third.
Date.UTC(Y, M, D) has a bug for D<1 in FireFox.
See <URL:
http://www.merlyn.demon.co.uk/js-datex.htm>.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.