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

  • 相关阅读:
    linux 6 安装 Nagios服务
    linux 6 安装 Nginx服务
    Rsync的配置与使用
    linux 6 搭建 msyql 服务
    linux6搭建Apache服务
    Linux 7搭建NFS服务
    Linux 6 忘记root密码重置
    简单makefile
    多线程c++11编程题目
    redis 代码结构与阅读顺序
  • 原文地址:https://www.cnblogs.com/wangpei/p/1315967.html
Copyright © 2011-2022 走看看