Coding Exit Now/Escape this Site Feature for Non-profit

@russian-dima It took me to how to link a site to the button, but I am not understanding how that is a able to change the current tab as well? I do not know much in this area so I struggle understand. Would you be able to give me any example?