Pages

Search This Blog

Friday, March 14, 2008

[Cognos] Script for updating caption of Finish Button

var pstr1=document.getElementsByTagName('Button');

for(var i=0;i {
if(pstr1[i]!=null && pstr1[i].name !=null)
{
if (pstr1[i].name!=null pstr1[i].name!='')
{
if(pstr1[i].name.substring(0,6)=='finish')
{
pstr1[i].innerHTML ="Run";
}


}
}
}

No comments: