zoukankan      html  css  js  c++  java
  • 用Redirect从新窗口打开链接

     

    Code

    用的时候直接调用就可以了

    调用方法
    windowFeatures是设置窗体,可以为空
    Redirect("http://www.baidu.com/", "_blank","");
    Redirect("http://www.baidu.com/", "_blank", "'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no'");
    其实也是利用了window.open() , 换而言之,也可以用
    Response.Writer("<script language=javascript>window.open('test.html','newwindow','');</script>");

  • 相关阅读:
    JAVA导出EXCEL表格
    解决springboot配置@ControllerAdvice不能捕获 NoHandlerFoundException问题
    Mysql 查看定时器 打开定时器 设置定时器时间
    IDEA @Autowired 出现红色下划线 报红
    IntelliJ IDEA报warn class is never used
    UML类图符号 各种关系说明以及举例
    提升单元测试体验的利器--Mockito使用总结
    maven2中snapshot快照库和release发布库的应用
    Maven最佳实践-distributionManagement
    访问GitLab的PostgreSQL数据库
  • 原文地址:https://www.cnblogs.com/wangpei/p/1315967.html
Copyright © 2011-2022 走看看