Javascript

Two of the three javascript window location object methods seem to do the same thing.  They do not. The window location methods are assign(), reload(), and replace(). The reload() method does what you think. Both assign() and replace() appear to simply open a new page. So…Uhhh….. What’s the difference between javascript location.assign() and location.replace()? It… Continue reading

Javascript

Javascript browser detection can be useful.  jQuery had the function “.browser” which would detect the users browser, but it was removed in jQuery version 1.9. They now recommend “.support” for browser feature detection.

*using navigator.userAgent can make you vulnerable to spoofing.  Here is a lengthy article.

 

So you’re not supposed to detect users browsers using javascript, but here’s how. Continue reading