I found the answer for this.
Timeout has to be set before calling the script in OnDocumentComplete Event.
sLineCard is HTML source for image which has to be displayed inside the iFrame of Gmail old Compose.
document.parentWindow.setTimeout(scriptSiggitt(sLineCard), 50);
public string scriptSiggitt(string sLineCard)
{
string sImageCard = " var htmlHeader; " +
" var htmlBody; " +
" var f; " +
" var y; " +
" var iFrame = document.getElementsByTagName('iframe'); " +
" for (var i = 0; i < iFrame.length; i++) { " +
" if (iFrame[i].className.toString() == 'Am Al editable') { " +
" f = document.getElementById(iFrame[i].id); " +
" y = (f.contentWindow || f.contentDocument); " +
" if (y.document) y = y.document; " +
" htmlHeader = y.head.innerHTML; " +
" htmlBody = y.body.innerHTML; " +
" if(htmlBody=='') { "+
" f.contentWindow.document.body.innerHTML = \"<br /><br/><br />" + sLineCard + " \" + f.contentWindow.document.body.innerHTML ; " +
" } "+
" else "+
" { " +
" f.contentWindow.document.body.innerHTML = \"<br /><br /><br />" + sLineCard + " \" + f.contentWindow.document.body.innerHTML ; " +
" } "+
" } " +
" } ";
return sImageCard;
}