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>");

  • 相关阅读:
    vscode中golang插件配置
    好用的go开源模块汇总
    常用linux指令
    读大嘴生平咨询---->关于商业模式的思考
    photoprism 源码阅读
    C语言的算法
    C语言输出函数和输入函数
    C语言基本概念
    servlet(3)
    servlet(2)
  • 原文地址:https://www.cnblogs.com/wangpei/p/1315967.html
Copyright © 2011-2022 走看看