作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2000, Vol. 26 ›› Issue (11): 45-46.

• 论文 • 上一篇    下一篇

利用JavaScript确定浏览器及平台的类型

王少锋,王克宏   

  1. 清华大学计算机科学与技术系 北京 100084,清华大学计算机科学与技术系 北京 100084
  • 发布日期:2000-11-25

Identify the Type of Browser and Its Running Platform with JavaScript

WANG Shaofeng, WANG Kehong   

  1. (Department of Computer Science and Technology, Tsinghua University, Beijing 100084)
  • Published:2000-11-25

摘要: 主要讨论了如何在Web页面中嵌入JavaScript脚本来确定客户端用户所使用的浏览及平台的类型,以便根据不同的浏览器类型在Web页面中使用不同的标记.

关键词: JavaScript, 浏览器, Web页面

Abstract: In this paper, we mainly discuss how to identify the type of browser and its running platform with JavaScript embedded into Web pages. So the writer of the Web pages may use specific tags for the browser that bas been identified.