-

 -

 -

-
: 216 : 0
- "".
: 485 : 0
.-. -
: 1631 : 0
-
: 44201 : 0

 - e-mail

 

 -

   CommandButton

 -

( : 4) _ __׸ _

 -

 LiveInternet.ru:
: 05.05.2008
:
:
: 214

:

HTML.


: (2), (1), (11), (28), (2), (7), (3), (3), PHP(6), JavaScript(10)
(0)

JavaScript 6

, 17 2009 . 21:16 +
 (CommandButton) 6.
6.1.
JavaScript :
// , , ;
/* */ , /* */ ; .
6.2.
, , . ., JavaScript . , . .



+ X + Y
- X - Y
* X * Y
/ X / Y
% X % Y
++ 1 X++
-- 1 Y--

6.3.
, = , .



+= X+=Y X = X + Y
-= X-=Y X = X - Y
*= X*=Y X = X * Y
/= X/=Y X = X / Y
%= X%=Y X = X % Y

, . , .
6.4.


= = X = =Y
!= X != Y
> , X * Y
>= ( ) X >= Y
< , X < Y
<= ( ) X <= Y


= .
6.5.
, , , . () , . , : 30 10, . , . true false.



! () !X
&& X&&Y
|| X ||Y

! , : X true, !X false , X false, !X true. , .


X Y X&&Y X ||Y
true true true true
true false false true
false true false true
false false false false

&& || . , true 1, false 0, , . , 1 + 1 = 1 ( 2). , . . , , , . , , , . , x&&y ; x false, y , , false. , x || y x true, y , , true. . , - , , .
6.6.
, , . if switch. if if , , if :

if ()
{ , , }
else
{ , , }

. , . , else (), . , if ():

if ()
{ , , }

. , , true false. . switch if. switch (). , , . switch :

switch () {
case 1:

[break]
case 2:

[break]

[default:
]
}

switch , . , . () break default , . , . break , . default, , . switch, default . switch . , switch. , . , . , , . , break, , break. .
6.7.
, . JavaScript : for, while do-while. , , for while. , , while. , , .

for
for () , . :

for ( [ ] ; [] ; [ ] )
{

}

, .
, for, , . . . if. , , . . . . , ( ). , for, . ( for). , , . , .

while
while ( , ) , , for, . :

while ( )
{

}

, , while. , , . . ( ) , , . . while c for, , , . , ( ).

do-while
do-while ( , ) , . :

do {

}
while ()

while do-while , . . , do. do-while . while , . while , .

HTML

(0)

JavaScript 5

, 17 2009 . 21:16 +
 (CommandButton) 5.
5.1.
. , , . , , . , .

JavaScript . , ( ) . , variable, Variable vaRiabLe . , . , . , , . , var, if, else, const, true, false, function, super, switch .


abstract else int super
boolean extends interface switch
break false long synchronized
byte final native this
case finally new throw
catch float null throws
char for package transient
class function private true
const goto protected try
continue if public typeof
default implements reset var
delete import return void
do in short while
double instanceof static with

5.2.
:
:
_ = =
: myName = ""
var ( variable ) :
var _
, .
:
var myName
myName = ""
var :
var _ =
: var myName = ""
var . , . , . .
var , , . , : var name = "", address, x = 3.14
, , . , (), ( null) . , =. . = : , . x y , x = y : x y. , , = . , . , , . 6.3 , +=, -= ..
5.3.
, var, , . , , . . . . , . , var, : , . . . , . . (, ). , . . JavaScript . , () HTML- Web-, .

HTML

(0)

JavaScript 4

, 17 2009 . 21:15 +
 (CommandButton) 4.
, .:


\n
\t
\f
\b
\r

. , , , Internet Explorer alert(), , n\: alert(" \n \n - ") , . , , , ? \ ( ). , " " : " \" \"". , . , , . Internet Explorer alert(" \" \"") , . , , ( ). -, : " ". . -, : " ". . , , : " ". . . , , . , , , . , , . , .

HTML

(0)

JavaScript 2

, 17 2009 . 21:13 +
 (CommandButton) 2.
, . , , , . JavaScript . , , , , - . , , . , , . , . , , . . , 5? , : . , , , . , , . , , +, , , . , , . . , , , . , , +, : , (, ). . , - . . - . , , . , , , , .. . , : .



, , Pascal. , , - . , Pascal (Object Pascal, Delphi Pascal Kylix Borland) . JavaScript (, , ):

JavaScript




, ,
(string) " !"
".. 123-4567"
" 30.11.2004."
(number) 3.14 , , (+ ); +; .
567
+2.5

(, boolean) true :
false true (, ) false (, );

Null null null,

Undefined undefined undefined,
,
(object) , .
,
(function) ,

HTML
JavaScript

(0)

JavaScript

, 17 2009 . 21:12 +
 (CommandButton) 1.
JavaScript . JavaScript HTML-, HTML. , JavaScript, Web- Internet Explorer, : alert(), prompt() confirm(). .
alert
OK. :

alert()

, , . , alert(" !"). , : , , ( ), . , alert(), , OK. , . , , . , , alert(), . , alert() . - , OK.

confirm
confirm OK (Cancel). alert , , . OK, true (, ); , false (, ). , , , . confirm :

confirm()
, , , . , confirm(" ?". , : , , ( ), . , , . , confirm(), , OK . , , . , , . , , confirm(), . OK, true (, ), , false (, ). , , , .

prompt
prompt , , . , : OK (Cancel). alert() confirm() : , . OK, , , false (, ). , , , . prompt :

prompt(, ___)

prompt() . , , undefined ( ). , , "". , prompt(" , ", ""). , prompt(), , OK . confirm(), . , .

HTML

(0)

1

, 27 2009 . 00:56 +
CristaLHeart (CommandButton) - BER-LIN -
-

<s> </s> —

<u> </u> —

<b> </b> —

<big> </big> —

<i> </i> —

<small> </small> —

&*nbsp; (* )

<sup> </sup>

<sub> </sub>

<blockquote> </blockquote> —



é ( ) — &*#769; (* )

:
!

<q title=" "> !</q>

title ( )




HTML


 : 2 [1]