.


:




:

































 

 

 

 


,




button

button <input> :

< input type="button" name ="_" value="__" onClick="_">

type <input> button. name , ( ). value. , JavaScript, .

, Click me, . , button.

<html> <head> <title>Button demo</title> <script language="JavaScript"> <!-- function btnClick() { var szTxt=""; var szTxt1=""; szTxt=document.TestForm.bt.value; szTxt1=document.TestForm.bt.name; document.write("<HR>"); document.write("You press button: " + szTxt.bold() + ", name=" + szTxt1.bold()); document.write("<HR>"); } // --> </script> </head> <body bgcolor=white> <h1>Click Button</h1> <form namr="TestForm"> <p><input type="button" name="bt" value="Click me!" onClick="btnClick();"> </form> </body></html>

checkbox

checkbox - . checkbox <input> type, "checkbox":

<input type ="checkbox" name ="__checkbox" value ="" checked onClick="_"> ,

name . JavaScript.

value , , . , "on". JavaScript value.

checked , .

, JavaScript, .

radio

radio , . , . radio :

<input type ="radio" name =" __radio" value ="" checked onClick="_"> ,

name, value checked radio checkbox. , radio, , , name. checkbox, , -. Web JavaScript, , , radio , value. , radio checked.

select

<select> , . <select> :

<select name="__select" size="_" multiple onBlur="_" onChange="_" onFocus="_"> <option value ="" selected> <option value =""> ... <option> </select>

<select , JavaScript , name, .

size .

multiple, select , .

<option>. <option> value selected. value , Web. selected , . <option> , .

text

, , Web , . , <input> type, "text":

<input type="text" name="__text" value="" size=_ onBlur="_" onChange="_" onFocus="_" onSelect="_">

name , text, .

value . HTML .

size () . . , .





:


: 2016-11-24; !; : 326 |


:

:

, .
==> ...

1733 - | 1558 -


© 2015-2024 lektsii.org - -

: 0.009 .