onfocus event occurs when an element gets focused true or false
Answers
Answered by
0
Answer:
true
Explanation:
The onblur event occurs when an object loses focus. ... Therefore, if you want to find out whether an element or its child loses focus, you could use the onfocusout event. However, you can achieve this by using the optional useCapture parameter of the addEventListener() method for the onblur event.
Answered by
10
Answer:
Explanation:
✍ᴏɴғᴏᴄᴜs ᴇᴠᴇɴᴛ ᴏᴄᴄᴜʀs ᴡʜᴇɴ ᴀɴ ᴇʟᴇᴍᴇɴᴛ ɢᴇᴛs ғᴏᴄᴜsᴇᴅ ᴛʀᴜᴇ ᴏʀ ғᴀʟsᴇ ??
✍Tʀᴜᴇ
Tʜᴇ ᴏɴʙʟᴜʀ ᴇᴠᴇɴᴛ ᴏᴄᴄᴜʀs ᴡʜᴇɴ ᴀɴ ᴏʙᴊᴇᴄᴛ ʟᴏsᴇs ғᴏᴄᴜs. ... Tʜᴇʀᴇғᴏʀᴇ, ɪғ ʏᴏᴜ ᴡᴀɴᴛ ᴛᴏ ғɪɴᴅ ᴏᴜᴛ ᴡʜᴇᴛʜᴇʀ ᴀɴ ᴇʟᴇᴍᴇɴᴛ ᴏʀ ɪᴛs ᴄʜɪʟᴅ ʟᴏsᴇs ғᴏᴄᴜs, ʏᴏᴜ ᴄᴏᴜʟᴅ ᴜsᴇ ᴛʜᴇ ᴏɴғᴏᴄᴜsᴏᴜᴛ ᴇᴠᴇɴᴛ. Hᴏᴡᴇᴠᴇʀ, ʏᴏᴜ ᴄᴀɴ ᴀᴄʜɪᴇᴠᴇ ᴛʜɪs ʙʏ ᴜsɪɴɢ ᴛʜᴇ ᴏᴘᴛɪᴏɴᴀʟ ᴜsᴇCᴀᴘᴛᴜʀᴇ ᴘᴀʀᴀᴍᴇᴛᴇʀ ᴏғ ᴛʜᴇ ᴀᴅᴅEᴠᴇɴᴛLɪsᴛᴇɴᴇʀ() ᴍᴇᴛʜᴏᴅ ғᴏʀ ᴛʜᴇ ᴏɴʙʟᴜʀ ᴇᴠᴇɴᴛ.
Similar questions