Closing a Popup using Javascript
I need to open a popup window when an input field is clicked, but when the button in the popup is pressed I need the popup to close and focus on the same field that was just clicked.
It seems to me the best way to do this is to use a click event that closes the popup and focuses on the input field.
What is the best way to do this?
Thanks.