|
Hi,
I am using javascript to close my child window and after closing child window, i want to refresh parent window.
So, this is the script function i am using,
<script language="JavaScript">
function closeAndRefresh()
{
window.opener.location.href="#{facesContext.extern alContext.requestContextPath}/main/billing/billRecords.jsf";
self.close();
}
</script>
This is the commandbutton code i am using,
<h:commandButton value="OK" onclick="closeAndRefresh()" />
So, How to resolve this......
Thanks,
Vinutha
|