JavaScript Reference/Event Handlers Reference/onClick — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
Содержание
"onClick" Example
<source lang="javascript">
<html> <body> <input type="text"
name="textfield" onclick="alert("You clicked an input text field")" value="Click me">
</body> </html>
</source>
"onClick" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | | |
| |<body> || |<button>
| | | | | |
| |<custom> | | |
| | | <dir> ||
| |document
- | | | <embed> | | |<fieldset> | | |<form> <frame> | | |<hn>
|| | <img> | | |<input type="button"> <inputtype="checkbox"> | | |<input type="file"> <input type="image"> | | |<inputtype="password"> <input type="radio"> | | |<input type="reset"> <inputtype="submit"> | | |<input type="text"> | | | <label> |
| |<legend>- | | |<listing> <map> | | |<marquee> <menu> | | |<nobr> <noframes> | | |<noscript> <object> | | |
<optgroup> | | |<option>
| | |
| | |