How can I make a button open a link in a new browser window?

How can I make a button open a link in a new browser window?

02becs11
Tourist
13 0 2

Hi! I am trying to get this button to open its link (social media handle) in a new browser page instead of redirecting it off the site. 

 

I am using the "Refresh" template. 

 

Thanks!

Becca 

Screen Shot 2023-05-11 at 14.09.24.png

Reply 1 (1)

NomtechSolution
Astronaut
1245 113 160

To make a button open a link in a new browser page instead of redirecting off the site in the "Refresh" template, you can add the target="_blank" attribute to the HTML code of the button. Here's an example:

<a href="https://your-social-media-link" target="_blank" class="your-button-class">Button Text</a>

Replace https://your-social-media-link with the actual link to your social media handle, and your-button-class with the class name or any additional styling you have for the button.

By adding target="_blank", the link will open in a new browser tab or window, allowing users to keep your site open while visiting the social media page.