Front page js code:
<head> <script> window.name = "PremaritalCheckup_ManSocietyAgreeForm"; </script> <base target="_self" /> </head> <form id="form1" runat="server" target="PremaritalCheckup_ManSocietyAgreeForm">
Window.name value is the value assigned in the form of target