Adding JavaScript events to an HTML input -


this code isn't working in firefox working on ie , chrome. when click inside text box runs focusout() , focusin() functions. behavior expected , syntax recommended?

<!doctype html>    <html>    <head>      <title>page of cage</title>      <meta charset="utf-8">      <link rel="icon" href="mkx-logo.png" type="image/x-icon">      <script type="text/javascript">        function focusin() {          alert("focus in!");        };          function focusout() {          alert("focus out!");        };      </script>	    </head>    <body>      <form>	        name:<input onfocus="focusin()" onblur ="focusout()" type="text" name="name"/> <br/>        <input type="submit" value ="submit"/>			      </form>    </body>  </html>	

replace alert console.log , watch web browser console using developer tools. nnnnnn said in comments.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -