Open Child Window From Parent Window using Java script and closing

in parent Window


   Response.Write(" < script > window.open('Vacancy_Detal.aspx?lbl_vac_code=" + vac_code.Text + "','','left=150px,top=70px,width=812,height=650,scrollbars=yes,toolbar=0,resizable=0,location=no,status=no'); < /script > ");
  

In Child Window

    Response.Write(" < script > window.opener.location.href='Vacancy_Detal.aspx ';  < /script > ");
        Response.Write(" < script > self.close();  < /script > ");



Open Pop up Window From Java Script

< script  language="javascript" type="text/javascript" >
function showSMSPopUp(ctrl)
{
window.open('Job_search_Detail.aspx?vac_code=' + ctrl + '','','left=20px,top=70px,width=830,height=650,scrollbars=yes,toolbar=0,resizable=0,location=no,status=no');
return false;
}
< /script >


Closing Popup Window On Server Side.

Response.Write("< script  > this.close(); window.open('Tell_Frd_Vacancy.aspx?vac_code=" + vacancy_code + "','','left=20px,top=70px,width=828,height=650,scrollbars=yes,toolbar=0,resizable=0,location=no,status=no'); < /script >");


Prev Post                                                      All Post                                                           Next Post



Posted in |

0 comments:

Post a Comment