PC6下载站

分类分类

脚本(JS)关闭窗体

关注+2010-01-28作者:

关闭窗体 
  1.
      this.btnClose.Attributes.Add("onclick",  "window.close();return false;");
  2.关闭本窗体间跳转到另一个页面
      this.HyperLink1.NavigateUrl = "javascript:onclick=window.opener.location.assign
        ('" + "index.aspx"+ "?&Func=Edit&AutoID=" + intAutoid + ');window.close();";
  3.关闭父窗体:
      <INPUT type="reset" value=' <%=this._Cancel%>' onclick="window.parent.close()"  Class="Button">

  4.关闭本弹出窗体,并刷新父页面

      this.Response.Write(" <script language='javascript'>window.opener.location.reload();window.close(); </script>");
 

展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消