crop_rotate
Run
<!DOCTYPE html> <html> <head> <style> .input { height:30px; width:30%; } </style> </head> <body> <h1>JavaScript on focus</h1> <p id="paragraph">this input will take border after value changed , after blured</p> <input type="text" class="input" id="input" placeholder="Enter Username"> <script> let input = document.getElementById("input"); input.onfocus = function(){ input.style.border='1px solid #55efc4'; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KIC5pbnB1dA0KIHsNCiAgIGhlaWdodDozMHB4Ow0KICAgd2lkdGg6MzAlOw0KIH0NCjwvc3R5bGU+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPiA6Oi13ZWJraXQtc2Nyb2xsYmFye3dpZHRoOjdweDtoZWlnaHQ6N3B4O306Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNre2JhY2tncm91bmQ6I2ZmZjt9Ojotd2Via2l0LXNjcm9sbGJhci10aHVtYntib3JkZXItcmFkaXVzOjVweDtiYWNrZ3JvdW5kOiMyZjQ1ZmY7fTwvc3R5bGU+PC9oZWFkPg0KPGJvZHk+DQo8aDE+SmF2YVNjcmlwdCBvbiBmb2N1czwvaDE+DQo8cCBpZD0icGFyYWdyYXBoIj50aGlzIGlucHV0IHdpbGwgdGFrZSBib3JkZXIgYWZ0ZXIgdmFsdWUgY2hhbmdlZCAsIGFmdGVyIGJsdXJlZDwvcD4NCjxpbnB1dCB0eXBlPSJ0ZXh0IiBjbGFzcz0iaW5wdXQiIGlkPSJpbnB1dCIgcGxhY2Vob2xkZXI9IkVudGVyIFVzZXJuYW1lIj4NCjxzY3JpcHQ+DQpsZXQgaW5wdXQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiaW5wdXQiKTsNCmlucHV0Lm9uZm9jdXMgPSBmdW5jdGlvbigpew0KICBpbnB1dC5zdHlsZS5ib3JkZXI9JzFweCBzb2xpZCAjNTVlZmM0JzsNCn0NCjwvc2NyaXB0Pg0KPC9ib2R5Pg0KPC9odG1sPg==