crop_rotate
Run
<!DOCTYPE html> <html> <head> <style> .input { height:30px; width:30%; } </style> </head> <body> <h1>JavaScript On Blur</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.onchange = function(){ input.style.border='1px solid #55efc4'; } input.onblur = function(){ input.style.border='2px solid red'; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KIC5pbnB1dA0KIHsNCiAgIGhlaWdodDozMHB4Ow0KICAgd2lkdGg6MzAlOw0KIH0NCjwvc3R5bGU+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPiA6Oi13ZWJraXQtc2Nyb2xsYmFye3dpZHRoOjdweDtoZWlnaHQ6N3B4O306Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNre2JhY2tncm91bmQ6I2ZmZjt9Ojotd2Via2l0LXNjcm9sbGJhci10aHVtYntib3JkZXItcmFkaXVzOjVweDtiYWNrZ3JvdW5kOiMyZjQ1ZmY7fTwvc3R5bGU+PC9oZWFkPg0KPGJvZHk+DQo8aDE+SmF2YVNjcmlwdCBPbiBCbHVyPC9oMT4NCjxwIGlkPSJwYXJhZ3JhcGgiPnRoaXMgaW5wdXQgd2lsbCB0YWtlIGJvcmRlciBhZnRlciB2YWx1ZSBjaGFuZ2VkICwgYWZ0ZXIgYmx1cmVkPC9wPg0KPGlucHV0IHR5cGU9InRleHQiIGNsYXNzPSJpbnB1dCIgaWQ9ImlucHV0IiBwbGFjZWhvbGRlcj0iRW50ZXIgVXNlcm5hbWUiPg0KPHNjcmlwdD4NCmxldCBpbnB1dCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJpbnB1dCIpOw0KaW5wdXQub25jaGFuZ2UgPSBmdW5jdGlvbigpew0KICBpbnB1dC5zdHlsZS5ib3JkZXI9JzFweCBzb2xpZCAjNTVlZmM0JzsNCn0NCmlucHV0Lm9uYmx1ciA9IGZ1bmN0aW9uKCl7DQogIGlucHV0LnN0eWxlLmJvcmRlcj0nMnB4IHNvbGlkIHJlZCc7DQp9DQo8L3NjcmlwdD4NCjwvYm9keT4NCjwvaHRtbD4=