अवलोकन
onfocusin इवेंट तब ट्रिगर होता है जब कोई तत्व फोकस प्राप्त करने वाला होता है।
उदाहरण
<!DOCTYPE html> <html> <body> <p>Write below:</p> <input type="text" onfocusin="newFunc(this)"> <script> function newFunc(x) { x.style.background = "blue"; } </script> </body> </html>