on
English [?n] US [ɑ:n]
prep. (??? ???) pair (??? ???) on...; ...
adv. on; on
adj. ?? ??, ???; ???
英[ ?f??k?s ]
vt.& vi. (to) ??, (to) ???; ?? [?? ??]? ???? ???? vt. (? ?? ??) ?? ??; ??, ?? n. ???? ???; ??(??, ??, ?? ?) [??] ??, ?? 3?? ??: ?? ?? ??: ?? : ?? ????: ??
?????? onfocus ?? ???
??: ??? ???? ?? ? ?????.
??: ??onfocus="SomeJavaScriptCode"
????: SomeJavaScriptCode ?????. ? ???? ??? ? ??? JavaScript? ?????.?
?????? onfocus ?? ?
<html> <head> <script type="text/javascript"> function setStyle(x) { document.getElementById(x).style.background="yellow" } </script> </head> <body> First name: <input type="text" onfocus="setStyle(this.id)" id="fname"> <br /> Last name: <input type="text" onfocus="setStyle(this.id)" id="lname"> </body> </html>
???? ?? ?
??? ????? ??? "???? ??" ??? ?????