Hi,
I am using JDeveloper 11.1.2.1.0
I want to close the browser window on pressing a command button.
I tried this code and it is working for Internet Explorer.
FacesContext facesContext = FacesContext.getCurrentInstance();
org.apache.myfaces.trinidad.render.ExtendedRenderKitService service = org.apache.myfaces.trinidad.util.Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
service.addScript(facesContext, "window.close();window.opener.location.href = window.opener.location.href;");
How to make this happen in Mozilla Firefox or Google Chrome?
Thanks,
Nigel.