The following statement is used because the method in question (refreshPartyList()) may not always be defined.
try {
parent.document.getElementById("myId").contentWindow.refreshPartyList(param1, param2);
}catch(e){}
Currently using the above approach and it is working fine, but is there a better alternative?
1 Answer