내장객체, BOM, DOM, 사용자 정의 객체

ITWeb/개발일반 2008. 2. 20. 16:47
 
자바스크립트 내장 객체
-Number
-String
-Date
-Array
-Boolean
-Math
-RegExp

 
브라우저 객체 모델(BOM) 객체
-window
§document
forms
cookie
links/anchors
images
§navigator
§location
§frames
§screen
§history

 
The Document Object Model (DOM) is an API for HTML and XML documents.
-Core DOM
§defines a standard set of objects for any structured document
-XML DOM
§defines a standard set of objects for XML documents
-HTML DOM
§defines a standard set of objects for HTML documents
 
DOM 객체
DOM Level 1,2,3
§DOM1 : 1997~1998
§DOM2 : 2000~2003
§DOM3 : 2004
Specification
 
DOM Level 1
DOM Level 1 (SE)
 
DOM Level 2 Core
DOM Level 2 HTML
DOM Level 2 Views
DOM Level 2 Style
DOM Level 2 Events
DOM Level 2 Traversal-Range
 
DOM Level 3 Requirements
DOM Level 3 Core
DOM Level 3 Events
DOM Level 3 Load and Save
DOM Level 3 Validation
DOM Level 3 XPath
DOM Level 3 Views

 
개발자가 만든 사용자 정의 객체
-JavaScript objects prototype.
§YAHOO.util.Connect = {
_msxml_progid:[],
_http_headers:{},
_has_http_headers:false,
setProgId:function(){}
}
§Profiler = function () {
var getProfilers; // private
this.getProfiler = function () {…} // public
}
§String.prototype.trim = functoin () {}
§Profiler = new Object();
Profiler.title = YAHOO;
Profiler.author = “Jerry”;


: