Page 125 - DCAP202_Fundamentals of Web Programming
P. 125

Fundamentals of Web Programming




                    Notes                  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


























          118                               LOVELY PROFESSIONAL UNIVERSITY
   120   121   122   123   124   125   126   127   128   129   130