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