This code isn't working in Firefox but working on IE and Chrome. When I click inside the text box it runs the focusOut() and focusIn() functions. Is this behavior expected and is the 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>
ng-eventname;)