.


:




:

































 

 

 

 





, (, ). 0 (Document Object Model level0 - DOM0).

JavaScript Window, . , (*), Window.

Screen (, , ) . , , , . , . :

o width - ;

o height - ;

o availWidth - ;

o availHeight - .

Navigator . , "" . , , " JavaScript".

Location URL , . URL, : , .. , , . , , , , , . :

o reload() ;

o replace() , .

History length ( ), , :

o back() - ;

o forward() - ;

o go(n) - n ( n >0, , n <0, ).

Document, . , (Document Object Model Level 0 - DOM0). .

frames[] , .

 

Window.history

history , Back/Forward.

window.history :

history.back() , "". history.go(-1). , , .
history.forward() , "". history.go(1). - .
history.go(delta) , delta . , history.go(-1) - , history.go(1) - . delta ( -1 ), .

 

length, .

history , URL , , .

 

ϳ HTTP

, , TNMHTTP:

Body - , , http- ( - InputFileMode True), ( - InputFileMode False). : string; Header - , , http- ( - InputFileMode True), ( - InputFileMode False). : string; HeaderInfo - , http- ( . help-). : THeaderInfo; InputFileMode - . True - , Body Header, False - . : Boolean; OutputFileMode - ( Put, Post Trace). True - , , False - . : Boolean;
Get(URL: string) - URL. Body Header ( InputFileMode); Head(URL: string) - URL. Header ( InputFileMode). Get, Head http-; Post(URL, PostData: string) - http- ( URL) , PostData. OutputFileMode True, PostData , . Put(URL, PutData: string) - http- ( URL), , PutData. OutputFileMode True, PostData , . Trace(URL, TraceData: string) - ( HTTP-). TraceData. OutputFileMode True, TraceData , . Delete(URL: string) - http- ( URL).
OnAuthenticationNeeded - , . ( ) , . : UserID Password HeaderInfo; OnAboutToSend - , TNMHTTP (). SendHeader; OnFailure - , , .. ; OnRedirect - , URL . handled True URL. - False; OnSuccess - , , .. ;   , TPowerSock: OnConnect - , ; OnDisconnect - , ; OnConnectionFailed - , ; OnError - , ; OnHostResolved - , DNS IP- ; OnInvalidHost - , DNS IP- ; OnPacketRecvd - , BytesRecvd BytesTotal , .. ; OnPacketSent - , BytesSent BytesTotal , .. ; OnStatus - , ( );

 

 





:


: 2016-09-06; !; : 291 |


:

:

: , .
==> ...

1821 - | 1425 -


© 2015-2024 lektsii.org - -

: 0.01 .