|
||||||||
|
||||||||
(DOM)
Web- .
- Web-. ? ,
. , ,
, ,
. , ,
.
, .
. , ,
.
(Document Object Model, DOM).
Web- Web- .
? .
, Web-.
, Web-, ,
, ,
, ,
.
, Web-,
Web-. ,
Web- - (.
12). ,
. ,
Web-: ,
- ""
Web- .
, Web- ! ,
, . , ,
.
, Web- .
Web-, .
! -
.
, .
. ID NAME.
ID .html, NAME
. , , ,
, , .
ID?
Navigator 4.x -. Navigator
ID ,
NAME. , !..
ID NAME .
, .
. Internet
Explorer : <
, ID NAME>.< >
Navigator 4.x, : document["<
, NAME>"].< >
, . <
ID="para" STYLE="color: #0000FF"> .</>
, para (
ID) , .
, Web-. para.style.color
= "#FF0000";
. ,
style,
. ,
. style
.
color color.
, align: para.
align = "center";
align ALIGN <>.
,
Web-. Navigator 4.x
.
, .
: <IMG
NAME=" some Image" SRC="image1.gif "> document
["someImage"] .src = "image2.gif";
, ,
. src somelmage,
SRC <IMG>.
Web-, document.
, , linkColor,
LINK <BODY>: document.linkColor
= "#FF0000";
. .html.
, .
Web-, .
document location, -
. .
, , -
: address
= document.location.href;
: filename
= document.location.pathname;
: document.location.href
= "http://www.othersite.ru/otherpage.htm";
window Web- ,
. , ,
: window.close();
, : window.status
= " Web-!";
window navigator,
Web-. .
, , , : version
= window.navigator.appVersion; : programName
= window.navigator.appName;
window history, ""
Web-. .
, "" ""
: window.history.forward();
: window.history.back(); , . . - , .
|
|
|||||||
|
|
|||
|
|
|||
|
|
|||||||
|
|