When you enter the input field, a function is triggered which sets the background color to yellow. When you leave the input field, a function is triggered which sets the background color to red.
Note: Firefox does not support the focusin and focusout events.