if (lVarScript == 'CN_TYPE')
{
parent.fnEffDateCheck();
document.frmMain.hidChgType.value = '1';
parent.fnChangeType();
}
wat doest the above code means?
if (lVarScript == 'CN_TYPE')
{
parent.fnEffDateCheck();
document.frmMain.hidChgType.value = '1';
parent.fnChangeType();
}
wat doest the above code means?
Check the variable 'lVarScript' equal to 'CN_TYPE'
If yes
Call a function fnEffDateCheck in parent. [ parent: Returns a reference to the parent of the current window or subframe. ]
Change the value of DOM element hidChgType in the form 'frmMain' to 1.
Call another function fnChangeType in parent.
Ordinary code that sets value in field hidChgType of form frmMain to 1 if lVarScript is equals to CN_TYPE.