Wednesday, January 12, 2011

How to reload the Open Popup, Close & Reload the Parent Page

Open a Popup :


In Head : 
< script>
function open_win(url_add)
{
 window.open(url_add,'welcome','width=600,height=450,menubar=no,status=yes,resizable=yes,location=yes,toolbar=no,scrollbars=yes');
}
< /script>


In Body :
< a href="javascript:void(0)" onClick="open_win('add_sales_order.php')" class="bred_link">Add Item & Schedule< /a>


Close a Popup :
< script>window.close();< /script>


Close a Popup & Reload the Parent Page :
< script>window.opener.location.reload();window.close();< /script>

No comments:

Post a Comment