Firefox function location() conflict
When working on adjustment some old IE8 project to Firefox, found curious problem : some page not opened (blank screen) and function location() {… written to address field.
Cause that page have defined function with name location.
Workaround is obvious: just rename function to location1, for example.
I don’t want to go deep inside to find exact cause. More likely that Firefox have window.location property implemented as function location(). And two location() functions get in conflict.
Filed under: javascript
Like this post? Subscribe to my RSS feed and get loads more!

Leave a Reply