Asp.Net页面刷新防止跳转到其他浏览器或新的选项卡

前端页面js代码:

<head>    
    <script> 
        window.name = "PremaritalCheckup_ManSocietyAgreeForm";
    </script>
    <base target="_self" />
</head>

<form id="form1" runat="server" target="PremaritalCheckup_ManSocietyAgreeForm">

window.name中赋值的值是form中target中的值

posted @ 2019-08-25 10:11  陋室灬铭  阅读(242)  评论(0编辑  收藏  举报