20230328数据展示页关闭按钮事件修改
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
Width="130px">
|
||||
</f:DatePicker>--%>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="close();">
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="closeNow();">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
@@ -101,7 +101,7 @@
|
||||
}
|
||||
|
||||
function closePage() {
|
||||
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
|
||||
if (navigator.userAgent.indexOf("Firefox") !== -1 || navigator.userAgent.indexOf("Chrome") !== -1) {
|
||||
window.location.href = "about:blank";
|
||||
window.close();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user