background preloader


Facebook Twitter

Browser detect. Page last changed today A useful but often overrated JavaScript function is the browser detect.

Browser detect

Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari. 用 js 或 php 判斷 Android 手機上網. jQuery 偵測瀏覽器版本, 作業系統(OS detection) jQuery browser and OS detection plugin. Browser/OS detection with jQuery As I wrote in my recent post I simply use the PPK BrowserDetect object to find out the browser/OS of the client.

jQuery browser and OS detection plugin

Actually I’m pretty sure there’s a similar jQuery plugin based again on that code from, but however I decided to write a simple plugin for jQuery wrapping it into a closure and exporting it in the “$” object. Demo You can see full working example here.