Code:
<input placeholder="Password.." onfocus="y()" type="text"/>


function y(){
this.style.backgroundColor="red";
}

whys this not working, can someone help?