Whiteship's Note

'자바스크립트 DOM 객체'에 해당되는 글 1건

  1. 2007.07.09 JavaScript HTML DOM Objects (2)

JavaScript HTML DOM Objects

AJAX/JavaScript : 2007.07.09 16:12


참조 및 번역 : http://www.w3schools.com/js/js_obj_htmldom.asp

그밖에 자바스크립트 객체
Object Description
Window The top level object in the JavaScript hierarchy. The Window object represents a browser window. A Window object is created automatically with every instance of a <body> or <frameset> tag
Navigator Contains information about the client's browser
Screen Contains information about the client's display screen
History Contains the visited URLs in the browser window
Location Contains information about the current URL

HTML DOM

HTML DOM은 W3C 표준이고 HTML을 위한 Document Object Model의 약자다.

HTML DOM은 HTML을 구성하는 객체의 표준 집합체를 정의하고 HTML 문서를 접근하고 생성하기 위한 표준적인 방법인다.

모든 (문자와 속성을 가지고 있는) HTML 요소들에 DOM 통해서 접근할 수 있다. 컨텐츠를 구정, 삭제 할 수 있으며 새로운 엘리먼트를 추가할 수도 있다.

HTML DOM은 독립적인 플랫폼이자 언어다. Java, 자바스크립트 그리고 VBScript 같은 프로그래밍 언어 처럼 사용할 수 있다.

다음의 링크들에서 자바스크립트를 사용하여 각각의 DOM 객체를 생성하고 접근하는 방법을 배울 수 있다.
Object Description
Document Represents the entire HTML document and can be used to access all elements in a page
Anchor Represents an <a> element
Area Represents an <area> element inside an image-map
Base Represents a <base> element
Body Represents the <body> element
Button Represents a <button> element
Event Represents the state of an event
Form Represents a <form> element
Frame Represents a <frame> element
Frameset Represents a <frameset> element
Iframe Represents an <iframe> element
Image Represents an <img> element
Input button Represents a button in an HTML form
Input checkbox Represents a checkbox in an HTML form
Input file Represents a fileupload in an HTML form
Input hidden Represents a hidden field in an HTML form
Input password Represents a password field in an HTML form
Input radio Represents a radio button in an HTML form
Input reset Represents a reset button in an HTML form
Input submit Represents a submit button in an HTML form
Input text Represents a text-input field in an HTML form
Link Represents a <link> element
Meta Represents a <meta> element
Option Represents an <option> element
Select Represents a selection list in an HTML form
Style Represents an individual style statement
Table Represents a <table> element
TableData Represents a <td> element
TableRow Represents a <tr> element
Textarea Represents a <textarea> element

'AJAX > JavaScript' 카테고리의 다른 글

JavaScript Timing Events  (0) 2007.07.10
JavaScript Animation  (2) 2007.07.09
JavaScript Form Validation  (2) 2007.07.09
JavaScript Cookies  (0) 2007.07.09
JavaScript Browser Detection  (0) 2007.07.09
JavaScript HTML DOM Objects  (2) 2007.07.09
JavaScript Math Object  (0) 2007.07.09
JavaScript Boolean Object  (0) 2007.07.09
JavaScript Array Object  (1) 2007.07.09
JavaScript Date Object  (1) 2007.07.09
JavaScript String Object  (1) 2007.07.09
top