a href link open in same tab
Custom Button Link
Godaddy Custom code are custom injections to section of the page and in most cases action button is needed and would be annoying if it loads on a different link unlike the other Godaddy defaults buttons.
The trick is to insert ‘/page-name’ link and target ‘_top’ The target instruct it to pen the linked document in the full body of the window and option not to use full link is just to ensure the page does not refresh.
Other target options:
- _blank – Opens the linked document in a new window or tab
- _self – Opens the linked document in the same frame as it was clicked (this is default)
- _parent – Opens the linked document in the parent frame
Here is the code that worked, the btn_1 is just the button stying to pick the correct css.
<a id="btn_1" href="/viewmore" target="_top">View More</a>
Guide on how to add custom code on Godaddy Link
Contact us or book Free appointment for Help