如何响应intraweb的按钮事件在新浏览窗口打开网页? 如打开www.sohu.com在iwform上有一个按钮,希望执行时在新窗口打开其他网页,如: www.sohu.com ,不时另外的iwform

解决方案 »

  1.   

      WebApplication.NewWindow('http://www.sohu.com');
      

  2.   

    <a href="http://www.sohu.com" target="_blank">按钮</a>通过css设置把这个链接 显示得像按钮就行了。
      

  3.   

    你好,
      非常抱歉,对css这种我是菜鸟,请问具体该如何设置?   我直接把他放在 iwurl 或者 rectangle 的css 属性里 不行   别见笑
      

  4.   

    <a href="http://www.sohu.com" target="_blank">按钮 </a> 
    是html标记要用你就用iwurl控件,来实现弹出窗口
      

  5.   

    不过iwurl控件也是通过js来弹出新窗口的。本地测试ie7没有拦截。
    这就是iwurl的生成的html标记
    <a href="#IWRL1" onclick="NewWindow('http://mail.hnbl.cn', '','location=no,menubar=no,resizable=yes,toolbar=no,scrollbars=yes')" title="http://mail.hnbl.cn" class="IWRL1CSS" id="IWRL1" tabindex="5">iwrl1</a>--------------
    还有一种方法就是加一个iwtext控件 ,在lines中加入<a href="http://www.sohu.com" target="_blank">按钮</a> ;
    后设RowText为true  。这是老方法了。