navigator.appName property that gives the browser name.
navigator.appVersion property that gives the browser version.
navigator.userAgent property that gives the browser related information.
这有帮助吗?
添加评论查看评论
问题 24. What is User-Defined class in Javascript?
can define new classes, but the notation is awkward
simply define a function that serves as a constructor
specify data fields & methods using this
onsubmit - call when submit button is clicked
onclick - call when this button is clicked
onreset - call when the reset button is clicked
onload - call after page loads
onmouseover - call when mouse pointer enters image area
onmouseout - call when mouse pointer leaves image area
onfocus - call when control receives focus
onblur - call when a control loses focus
onchange - call when a control loses focus and the value of its contents has changed
onunload – call when a page is closed