Announcement Announcement Module
No announcement yet.
Window close on logout Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Window close on logout

    Hi all,
    I have one doubt, how do close popup windows on logout of an application. I am using JavaScript to popup window. Below is the code I am using..

    <script language="javascript"> 
    function openWindow(view) 
    if (view ==  "availability")'Availability.htm?',"mywindow","menubar=0,resizable=0,widthu0,height%0"); 
    if (view ==  "requests")'Requests.htm?',"mywindow","menubar=0,resizable=0,widthu0,height%0"); 
    <table width="98%" align="center" cellpadding="0" cellspacing="0">
    		<td><strong><fmt:message key="view"/>&nbsp;:&nbsp;</strong>
    		<a href="javascript:openWindow('availability')"><strong><fmt:message key="search.Availability"/></strong></a> 
    		<a href="javascript:openWindow('requests')"><strong><fmt:message key="search.Requests"/></strong></a>
    I have one "OK" button for closing the window, where I have used window.close(), and its working fine. Apart from this I want the window to be closed when the user clicks logout tab without closing window.
    How do I do this?
    Thanks in advance.