我有以下代码片段,它插入一个点击按钮并在我的 CRM 中打开一个谷歌页面。我如何设计我的按钮。该按钮出现在下面的输入选项卡中。有哪些选项。使按钮更流畅,更棒
<script>
function openLink(target){
window.open('https://google.co.in','_blank');
}
function addCustomButton()
{
var mergeNode = document.getElementById("BTN_TB_AccountForm_MergeWizard").parentNode.parentNode.parentNode.parentNode;
var parent=mergeNode.parentNode;
//BTN_TB_AccountForm_MergeWizard is the ID of the Merge Button on the ActionForm Bar
//Create a TD node and attach a buttom element.
var td2 = document.createElement("td");
td2.innerHTML="<input type=button value=Click onclick=\"openLink()\">";
//Append Child
parent.insertBefore(td2,mergeNode.nextSibling);
}
}
setTimeout ( "addCustomButton()", 1000 ); // To be sure the Action Bar is loaded
</script>