We would like to know how to handle focus got event handler.
<!--from w w w . j av a 2s . c o m-->
<html>
<body>
<script language="JavaScript">
function set(){
console.log("123");
}
</script>
<form name="form1">
<input type="PASSWORD" Name="pass" size=10 onFocus=set()>
<br>
<input type="BUTTON" value="Show Formname" >
</form>
</body>
</html>
The code above is rendered as follows: