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:

  1. _blank – Opens the linked document in a new window or tab
  2. _self – Opens the linked document in the same frame as it was clicked (this is default)
  3. _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

Leave a Reply

Your email address will not be published. Required fields are marked *