I have two text fields in a form and a submit button. When the user clicks on in it must show a box message, containing the information user has provided and the current time.

How can I do this? Keep in mind that I'm a beginner with JavaScript.