タグ

javaScriptとuserAgentに関するtsupoのブックマーク (2)

  • ユーザエージェントからブラウザの種類やバージョンを判断する:CodeZine

    はじめに ブラウザの種類やバージョン、ブラウザ固有の実装の違いを考慮し、同じように動作するスクリプトを「クロスブラウザスクリプト」と言います。連載では、クロスブラウザスクリプトを実現する方法について順を追って解説します。 クロスブラウザを実現する方法の一つに、「JavaScriptを実行するブラウザの種類やバージョンを判断し、そのブラウザに合わせたスクリプトを実行する」という方法があります。JavaScriptは、ブラウザの種類やバージョンによってサポートされている内容が異なることがあるため、ブラウザを判断し、その違いを吸収することは、クロスブラウザを実現する上でとても重要です。 ブラウザの種類やバージョンを判断するためには、navigatorオブジェクトを使います。navigatorオブジェクトには、ブラウザに関する基的な情報がプロパティとして収められています。この連載でも、前回はn

    tsupo
    tsupo 2006/03/17
    ユーザエージェントの情報は素直にブラウザ自身を表していない場合が数多く、一筋縄ではいきません → しかも、ユーザエージェントはいじろうと思えばいじれるしね。あんまりこの手の手法に頼らない方がいいよw
  • IEBlog

    Internet Explorer Team Blog We've moved! Find us at the new Microsoft Edge Dev Blog As we announced last week, with the reveal of Microsoft Edge we are archiving the IEBlog. Future... Date: 05/08/2015 Microsoft Edge is the browser for Windows 10 This morning, Joe Belfiore took to the stage at Build 2015 to share more about the next chapter in... Date: 04/29/2015 Announcing improvements to Enterpri

    IEBlog
    tsupo
    tsupo 2005/12/08
    Once the investigation is complete we'll take appropriate action for our customers which may include fixing this in a future security update for IE.
  • 1