This is working well except for one tiny detail. If the user refreshes the page (pushes F5 or <Ctrl>+F5) after returning to the front-end page upon closing the chat window, the chat window is opened again. This is due to the state of the hidden field. For some reason, even though the last thing done by the page load script is to clear the hidden field, the window.open command is magically back in it when focus returns to the page. Can anyone tell me why this is happening?
Thanks in advance!