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

If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky

  If you’re using   Visual Studio   to build your   .NET MAUI   app on a   Mac , locating the   IPA (iOS App Package)   file can be a bit tr...