Say I have a menu with the following
<a href="/chat.php" class="newwindow">Chat</a>
$(".newwindow a").click(function(e){
e.preventDefault()
window.open($(this).attr('href'),'Chat', 'width=500, height=576');
return false;
});
So this jQuery along with HTML opens up a window for chat.php
Is there a way to detect across the rest of my website if this chat.php
window is currently open and when it has closed too?
Reason being the chat is on every page of the website and when the use opens into a new window I would like to remove the chat from the active webpages