Copy link to clipboard
Copied
We are using RoboHelp 2019 Classic and using The Helper function for Browser based Help: function RH_Show_BrowserBasedHelp(hParent, strHelpPath, strCategory,strWnd, uCommand, nMapId) to open context sensitive help in a popup.
When help popup is open, if we go to a different parent page the popup closes immediately. This happens only in Chrome(75) only not in IE(IE11).
After investigating the issue we found this is happening because of some code present in whcsh_home.htm. Below is the code snippet which is causing the issue:
function window_OnBeforeUnload()
{
// Close the popup window to solve the focus problem. window.focus() does not work in all browsers.
// When we are loaded the next time with a new ID, we will open a new popup window.
// This makes sure that the popup window is opened on top.
if (goNewWnd && !gbIE) // Skip IE because window.focus() works fine for IE. Besides IE displays ActiveX warning everytime we open a new window.
{
goNewWnd.close();
}
}
Please let me know is there any fix/workaround, so that the popup remains open in chrome even if we move to a different parent page.
Have something to add?