如果A链接的target=blank,如何能控制这些属性啊,急!!!

解决方案 »

  1.   

    <a href="javascript: var win=window.open
    ('1.htm','_blank','toolbar=no,scrollbar=no,top=50,left=50,width=100,height=100')" >Open 
    1.htm</a>
      

  2.   

    <a href="javascript:window.open('1.html','_blank','scriollbar=no,width=400,height=500')">open</a>
    标点符号自己搞定!!!
      

  3.   

    我做个这个实验,这种方式没有办法传递中文参数
    private void Page_Load(object sender, System.EventArgs e)
    {
    this.Label1.Text = "<input type=button onclick=\"Open('webform2.aspx?bookname=" + HttpUtility.HtmlEncode("中国知识") + "');\">";
    this.Label2.Text = "<a href=\"javascript:Open('webform2.aspx?bookname=" + HttpUtility.HtmlEncode("中国知识") + "');\">asdf</a>";
    }button的那种可以正确传递
    但是a的不可以正确传递还有其他的办法吗?
      

  4.   

    <a href="javascript: var win=window.open
    ('1.htm','_blank','toolbar=no,scrollbar=no,location=no,top=50,left=50,width=100,height=100')" >Open 
    1.htm</a>
    width:寬度
    height:高度
    toolbar:工具條
    location:地址欄
    scrollbar:滾動條
      

  5.   

    用A链接执行java脚本,没有办法传递中文参数,我试了很多次了
      

  6.   

    1、window.open
    2、unicode0:请自己查阅相关帮助信息。
      

  7.   

    window.open("url", "_blank", "fullscreen=3,titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,edge:Raised,left=0,top=0,width=200,height=300,false);
      

  8.   

    首先在传递之前先进行urlEncode编码;
    使用的时候在进行urlDecode解码。string testPara = Server.UrlEncode( lblName.Text.Trim()) ;
       Response.Write("<script language='javascript'>");
       Response.Write("window.open(url.aspx?name=" +testPara + "','_blank','status=yes,scrollbars=yes,resizable=yes,status=yes,width=610,height=500');");
       Response.Write("</script>");string strUser = Server.UrlDecode(Request.QueryString["name"]);