Medidata Solutions interview question

Create a working example of javascript input box and message once submitted.