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,
Expand|Select|Wrap|Line Numbers
- <script language="JavaScript">
- function closeAndRefresh()
- {
- window.opener.location.href="#{facesContext.externalContext.requestContextPath}/main/billing/billRecords.jsf";
- self.close();
- }
- </script>
<h:commandButton value="OK" onclick="closeAndRefresh()" />
So, How to resolve this......
Thanks,
Vinutha