FineUI 点击按钮添加标签页

时间:2021-02-19 17:00:21
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<script type="text/javascript">
if (top == window) {
window.location.href = "../default.aspx#/other/addtab.aspx";
}
function AddActiveTab() {
var node = {
attributes: {
href: "Exam/PlanList2.aspx"
},
text: "你好 FineUI",
id: "hello_fineui_example"
}; //window.parent.addExampleTab(node);
parent.addExampleTab.apply(parent, [node]);
} function closeActiveTab() {
parent.removeActiveTab();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div >
<asp:Button runat="server" ID="btnAddTab" Text="添加新标签页" OnClientClick="AddActiveTab();"/>
</div>
</form>
</body>
</html>