list of javascript quirks

This post is to remind myself of mistakes I did or encountered with javascript.

Do not use window.location.origin

It is undefined in Firefox currently (ver. 14.0.1). Instead, use window.location.protocol + ‘//’ + window.location.host

from http://stackoverflow.com/questions/5375788/jquery-load-responds-with-error-under-firefox-works-fine-under-chrome

to be continued…

list of javascript quirks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s