I am trying to add the hyperlink to the Tridion ribbon by following the below code in the js file where we have isAvailable,isEnabled and _execute methods.
var mydiv = document.getElementById("myDiv");
var aTag = document.createElement('a');
aTag.setAttribute('href',"yourlink.htm");
aTag.innerHTML = "link text";
mydiv.appendChild(aTag);
I am able to see the hyperlink over the ribbon, but since the ribbon is refreshing for every action we do, the hyperlink is getting created multiple times(growing sideways). So i need to show only one hyperlink. Could anyone help me.