ExtJs怎么才能点击一个按钮后,重新打开一个浏览器窗口?

来源:互联网 发布:网络学历教育 编辑:程序博客网 时间:2024/05/29 07:25

ExtJs怎么才能点击一个按钮后,重新打开一个浏览器窗口?5

如题。希望大家帮帮我。
JavaScriptAjaxExtJS 
2012年6月07日 08:52
  • Comment添加评论
  • 关注(0)

2个答案按时间排序按投票排序

00

采纳的答案

给你实装了代码 

Html代码  收藏代码
  1. <!DOCTYPE html>  
  2.   
  3. <html>  
  4. <head>  
  5.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  6.     <title>Button</title>  
  7.     <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-4.0.7-commercial/resources/css/ext-all.css"/>  
  8.     <script type="text/javascript" src="http://extjs.cachefly.net/ext-4.0.7-commercial/ext-all-debug.js"></script>  
  9. </head>  
  10. <body>  
  11. <script type="text/javascript">  
  12. Ext.create('Ext.Button', {  
  13.     text: 'Click me to open url',  
  14.     renderTo: Ext.getBody(),  
  15.     handler: function() {  
  16.        window.open('http://www.baidu.com', 'mywindow1', 'width=400height=300menubar=notoolbar=noscrollbars=yes');  
  17.     }  
  18. });  
  19.   
  20. </script>  
  21.   
  22. </body>  
  23. </html>  

2012年6月13日 09:01
  • Comment添加评论
10

这个可以直接用javascript的原生方法的啊?window.open(url);


0 0
原创粉丝点击