Thursday, February 9, 2012

Open PopUp window using JScript in ASP.NET

Open PopUp window using JScript in ASP.NET <p>
<a href="javascript:open_popup('OrganizationDetails.aspx')">OrganizationName</a
>

</p>
 
 <script language="JavaScript"> 
 function open_popup(page)  
 {  
 window_handle = window.open(page,'popupWindowName');  
 window_handle.focus();  
 } 
 </script> 
 //The variable window_handle is used to retain the reference to the pop-up window throughout the life of the current document. 
  As soon as the pop-up window is created, or its contents are requested to be changed, then the focus 
 () method ensures that it is brought to the top of the stack of visible windows. 

No comments:

Post a Comment

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...