タグ

ブックマーク / www.quirksmode.org (1)

  • JavaScript - Browser detect

    A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari. If you're new to JavaScript, don't use browser detects. You don’t need them. Please read the object detection page first. Use WhichBrowser This page used to contain my own browser detect script, but I found that I

    picnicgraphic
    picnicgraphic 2006/11/08
    「クラスなのでグローバル変数多用もせず、再利用/BrowserDetect.js自体は読み込むだけでBrowserDetect変数が初期化→メンバ変数を参照/via*phpspot開発日誌」
  • 1