hi
this is my code.
//at first i create an nvarchar fild with name msc_confirmbutton
crmForm.all.msc_confirmbutton_d.style.visibility = ‘hidden’;
if (crmForm.all.msc_confirmbutton != null)
{
var field = crmForm.all.msc_confirmbutton_c;
var html = “<table border=’0? cellspacing=’0? cellpadding=’0?><tr><img width=’32? height=’32? style=’cursor:hand’ src= 'http://crmsrc/files/img/images2.jpg' alt=’Click button’ onclick=’Button_OnClick()’
/></tr></table>”;
field.innerHTML = html;
}
Button_OnClick = function()
{
alert(“hello”);
}