Asp.Net refresh the page jump to prevent another browser or a new tab

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

Guess you like

Origin www.cnblogs.com/Mrliang007/p/11407064.html