Code: Select all
var newButton = newElement(12, 1, "input", "Trans. History");
newButton.id = 'btnTransHistory';
var newButton = getObj('btnTransHistory');
addEvent(newButton, "click", function(){
riskTransactionHistory();
});
I have tried the following code, but the button does not display:
Code: Select all
var newButton = createNamedElement("button", "TransHistoryButton");
applyProperty(newButton,"id",'btnTransHistory');
applyProperty(newButton,"value",Trans. History');
applyProperty(newButton,"left",10);
applyProperty(newButton,"top",300);
newButton.onclick = function(){
riskTransactionHistory();
};