Using oninput event to get input.

Enter input to trigger the function.

Enter the name: