MyTetra Share
Делитесь знаниями!
onclick
Время создания: 14.05.2017 19:42
Раздел: javaScript - functions - events
Запись: xintrea/mytetra_db_mcold/master/base/1494780122z9uwhz95ch/text.html на raw.githubusercontent.com

This is the most frequently used event type which occurs when a user clicks the left button of his mouse. You can put your validation, warning etc., against this event type.

Example

Try the following example.

<html>
   <head>
      
      <script type="text/javascript">
         <!--
            function sayHello() {
               alert("Hello World")
            }
         //-->
      </script>
      
   </head>
   
   <body>
      <p>Click the following button and see result</p>
      
      <form>
         <input type="button" onclick="sayHello()" value="Say Hello" />
      </form>
      
   </body>
</html>
Так же в этом разделе:
 
MyTetra Share v.0.65
Яндекс индекс цитирования