Here is what I did
Parent Page JavaScript:
<script type="text/javascript">
function setMessage(strMsg) {
document.getElementById('<%= lblMessage.ClientID%>').innerHTML = strMsg;
}
</script></script>
And this is how i called it through the iFrame
<script>
top.setMessage('hello');
</script>
And it working fine :)