extjs 弹出windowsurl

代码
function buildWindow(url) {
var DisplayPanel
= new Ext.TabPanel({
350,
id:
"tt",
title:
"dfsdf",
height:
500,
400,
autoScroll:
true,
activeTab:
0,
frame:
true,
autoDestroy:
false

});
var tan
=DisplayPanel.add({
id:
"ee",
title:
"sdf",
height:
500,
400,
autoScroll:
true,
closable:
true,
autoLoad: {
showMask:
true,
url: url,
mode:
'iframe',
maskMsg:
'Loading ' + '...'
}});
var win
= new Ext.Window({
id:
"ww",
layout:
"fit",
autoScroll:
true,
title:
"Source code",
iconCls:
"icon-pagewhitecode",
600,
height:
600,
maximizable:
true,
autoShow:
true,
plain:
true,
resizable:
false,
shadow:
false,
bufferResize:
true,
modal:
true,
items:[DisplayPanel]

});

win.show();
}
<ext:Button ID="Button1" runat="server" Text="Submit">
        <Listeners>
            <Click Handler="buildWindow('Default.aspx')" />
        </Listeners>
    </ext:Button>

原文地址:https://www.cnblogs.com/hanli/p/1702367.html