js vuejs focus text input box code example Example: focus on input field vuejs event <input @focus="function" />