# Set a redirect link for Yes button

**URL:** <https://community.elfsight.com/t/set-a-redirect-link-for-yes-button/83187>\
**Category:** Age Verification\
**Tags:** Gathering-Feedback\
**Created:** [November 15, 2024, 6:56am UTC](https://community.elfsight.com/t/set-a-redirect-link-for-yes-button/83187 "2024-11-15T06:56:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tayeb](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@Tayeb](https://community.elfsight.com/u/Tayeb)\
**Post date:** [November 15, 2024, 6:56am UTC](https://community.elfsight.com/t/set-a-redirect-link-for-yes-button/83187/1 "2024-11-15T06:56:24Z")

</div>

When they click yes to enter as accept you can redirect them to a different URL.  
that’s all

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [November 15, 2024, 3:42pm UTC](https://community.elfsight.com/t/set-a-redirect-link-for-yes-button/83187/2 "2024-11-15T15:42:40Z")

</div>

Hi there, @Tayeb 👋

Thanks for sharing your idea with us!

We agree that it would be great to have this option in the settings. If more users upvote this idea, we’ll try to consider it in the future.

In the meantime, you can do this using the code below in the Custom JS field on the Appearance tab of your widget’s settings:

```auto
const REDIRECT_URL = 'https://elfsight.com/';

document.addEventListener('click', (e) => {
  if (e.target.closest('.eapp-age-verification-item-allow-buttons-yes')) {
    window.open(REDIRECT_URL, '__blank');
  }
});

```

Replace [https://elfsight.com/](https://elfsight.com/) in the 1st line of the code with your link 🙂
