Closes a lightbox.
The close() method closes a lightbox and allows you to pass data from the lightbox to the page that opened the lightbox.
If a lightbox is closed through the 'X' icon, close button, or lightbox overlay, data will not be returned to the original page.
To ensure data can be passed:
onClick event that calls close().Note: While the editor and dashboard now refer to these elements as popups, the API methods and documentation continue to use the term lightbox for consistency and backward compatibility.
The data to pass back to the openLightbox() method.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.