| |
| Internet Explorer | Netscape Navigator | ||||||
|---|---|---|---|---|---|---|---|
| 4.0x | 4.5 | 5.0x | 5.5 | 6.0 | 4.x | 6.0 | |
| Windows | ○ | - | ○ | ○ | ○ | ○ | ○ |
| Macintosh | ○ | ○ | ○ | - | - | ○ | ○ |
| UNIX | - | - | - | - | - | ○ | ○ |
| 解 説 | ブラウザを判別するにはnavigatorオブジェクトのappNameプロパティを参照し、得られた文字列を調べます。Internet Explorerという文字があればInternet Explorer、Netscapeという文字があればNetscape NavigatorまたはInternet Explorer以外のブラウザになります。 |
|---|---|
| コード |
|
|
■サンプルスクリプトを実行する >>実行 ■各ブラウザでの動作結果を見る >>View! |