OnFocus and OnBlur
<input type="text" name="yourName" placeholder="Please Enter Your Name" onFocus="this.style.border='1px solid #c00';this.style.backgroundColor='#eee';" onBlur="this.style.border='1px solid #ccc';this.style.backgroundColor='#fff';">