Results 1 to 2 of 2

Thread: Window close on logout

  1. #1

    Default 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..
    Code:
    <script language="javascript"> 
    function openWindow(view) 
    { 
    if (view ==  "availability")
    window.open('Availability.htm?',"mywindow","menubar=0,resizable=0,widthu0,height%0"); 
    if (view ==  "requests")
    window.open('Requests.htm?',"mywindow","menubar=0,resizable=0,widthu0,height%0"); 
    } 
    </script> 
    <table width="98%" align="center" cellpadding="0" cellspacing="0">
    	<tr>
    		<td><strong><fmt:message key="view"/>&nbsp;:&nbsp;</strong>
    		<a href="javascript:openWindow('availability')"><strong><fmt:message key="search.Availability"/></strong></a> 
    		&nbsp;&nbsp;|&nbsp;&nbsp;
    		<a href="javascript:openWindow('requests')"><strong><fmt:message key="search.Requests"/></strong></a>
    		
    
    	</tr>
    </table>
    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.

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    This doesn't seem like a Spring Security question. Please search the web or use a Javascript related list.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •