I have seen a good introducing article about Dom(Document Object Model):
The purpose of this assignment was to learn how to use
JavaScript with the DOM(Document Object Model),
and about some of the properties
available through the DOM's window object.
The description and my solution of the
DOM Properties-assignment can be viewed
at the bottom of this page.
What is DOM
The DOM is an API for HTML and XML documents.
It defines the structure of documents and the way to access that structure in favor for manipulating how the document will be presented, what the document's content will be and how the document will be structured.
With this model programmers can create documents, navigate the document, add, change or delete elements and content.
A very common script language using DOM as a model is JavaScript. However, the model itself has noting to do with JavaScript, it is simply a model that can be used by any programming language or scripting language.
Care must be taken when using the DOM since many browsing software offer extensions not following the W3C standard.
What is the DOM Window Object?
The window object represents the window itself. It is created automatically with every instance of a <body> or <frameset> tag. The window object contains the document as a child and provides - among others objects - access to the useful window.navigator and window.screen objects. These two objects are often used for manipulating the browsing environment itself, and provides many special properties for accessing objects futher down the tree structure.
Assignment Description
Create a Web page with functionality for displaying the different properties of the window, window.screen, window.navigator window.location, window.history and window.document objects.
Original Address: http://www.webpelican.com/internet-programming-3/dom-properties/
dom Structure see: http://www.howtocreate.co.uk/tutorials/javascript/domstructure
Basic object model for all modern browsers:
window
|
--------------------------------------------------------------------------
| | | | |
navigator screen document history location
About typeof:
typeof
returns one of the following
strings
:
- number
- string
- boolean
- object
- function
- undefined (= null )
typeof(typeof(x))
is always string
, no matter what x actually is.
IE seems to think that some functions are objects rather than functions: typeof(document.getElementById)
returns object.
I have done a testing code about all the objects in DOM, it concerns all the properties of all the objects.
Here is the code:
分享到:
相关推荐
MUTUAL RECOGNITION ARRANGEMENT ON CONFORMITY SOM3SCSCJRAC016
Memorandum on Commercial Arrangement.doc
Problem Arrangement zoj 3777
Quota Arrangement Quota Arrangement
对输入的任意图像进行 Canny 边缘检测源码
飞机的登机顺序安排问题,毕强,何涛,飞机的登机顺序安排问题是典型的最优化问题,亦即应用何种策略使得登机时间最短,乘客等候时间最少。本文我们考虑了阶层的分析方
JQuery waterfall flow arrangement style code is a jQuery waterfall flow code based on gridify. JS plug-in
Tsingtao three to four days arrangement
Types of Institutional Credit Arrangement.doc
2013年湖南大学邀请赛H题bottles arrangement 结题报告。
ST7565P Pad Arrangement(COG)相关资料
Solution – Quota Arrangement We also need to diversify our source of supplies to mitigate the impact of disruption to our supply chain when exception happens. How to streamline internal purchase ...
MIn3S5 (M [equals] Rb, Cs), a New Structure Type based on a Joint ccp Arrangement of S2- and M+: Structure, Microstructure, and Twinning MIn3S5 (M � Rb, Cs), a New Structure Type based on a Joint ...
时态结构
The dependence of radiation characteristics of random laser on the size and arrangement of crystal grains in PCs
Arrangement - Actraiser [Birth of the people] mp3 music
Course_Arrangement用C++写的自动排课程序,经过调试运行,可用,并达到了预期效果。
kouyou (Piano Arrangement)钢琴曲谱双手数字简谱钢琴曲谱.pdf
In order to improve the performance of reflectance diffuse optical imaging (rDOI), a novel polynomial geometry (PG) of optical fibers arrangement is proposed. Polynomial geometry is based on the ...
components that each make some kind of transformation on the data exposed by the spout. To illustrate this concept, here’s a simple example. Last night I was watching the news when the announcers ...