function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chirag MehtaChirag Mehta 

Salesforce.com-ish Button Creator Demystified

 
Find More on it @ SFDC Community
 
 
How does it works .... Its really  simple thing
 
There a  function called CreateButtons which does simply creation of a button using the CSS of SFDC
thats why it looks like SFDC Button
 
function CreateButtons() {
 for (Button = 1; Button < 5; Button++){
  var ButtonId = "button" + Button + "text";
  var ConstructedButtonId = "button" + Button
  var buttontext = document.getElementById(ButtonId).value;
  if (buttontext != "") {  
   var constructedbuttontext = "<INPUT class=btn type=button title=Create value='";
   constructedbuttontext+= buttontext;
   constructedbuttontext+= "'>";
   document.getElementById(ConstructedButtonId).value = buttontext;
   document.getElementById(ConstructedButtonId).style.display = "inline";
  }
 }
}