How to close the current tab in magento 2 custom page?

I have created one custom page .In this page one link is there ,while clicking the link I need to close the custom page .how can we achieve this?