I'm making a form where people can enter a web address and the name of the site, and after they lose focus off of the input field, I want to display a link to the site. How do I do this?
So far I've come up with this:
That code doesn't work. I typed this code up myself, and I'm still just learning JS.

Any help?