Page 182 - DCAP408_WEB_PROGRAMMING
P. 182

Web Programming




                    Notes             <INPUT TYPE = “reset”>
                                           click  (onClick)
                                      <INPUT TYPE = “submit”>
                                           click  (onClick)

                                      <INPUT TYPE = “text”>
                                           blur (onBlur)
                                           focus (onFocus)

                                           change (onChange)
                                           select (onSelect)
                                      <SELECT>
                                           blur (onBlur)
                                           focus (onFocus)

                                           change (onChange)
                                      <TEXTAREA>
                                           blur (onBlur)

                                           focus (onFocus)
                                           change (onChange)
                                           select (onSelect)


                                          Example:
                                          <html>
                                          <head>
                                          <script  type=”text/javascript”>
                                          function  popup()
                                                 {
                                                 alert(“Hello  upendra!”)
                                                 }
                                          </script>
                                          </head>
                                          <body>
                                          <input  type=”button”  value=”Click  Me!”  onclick=”popup()”><br  />
                                          <a  href=”#”  onmouseover=””  onMouseout=”popup()”>
                                          Hover  Me!</a>
                                          </body>
                                          </html>
                                   Output






          176                               LOVELY PROFESSIONAL UNIVERSITY
   177   178   179   180   181   182   183   184   185   186   187