易截截图软件、单文件、免安装、纯绿色、仅160KB

这个,JavaScript不起作用了

protected void LinkButton10_Click(object sender, EventArgs e)
  {
  Response.Write("<script>window.open('UserInsert.aspx','','width=800,height=600')</script>");
  Response.Write("<script>location='javascript:history.go(-1)'</script>");

  }
为什么呢?

怎么拼,不解,字符串不要改呀?

没人解决?

你为什么不直接用LinkButton10.attribute.add("onclick","window.open(参数)");

protected void LinkButton10_Click(object sender, EventArgs e)
  {
  Response.Write("<script>window.open('UserInsert.aspx','','width=800,height=600')</script>");
  Response.Write("<script>location='javascript:history.go(-1)'</script>");

  }
貌似你这里有点问题把!你又打开另外一个页面,又返回到前面去,不等于没有打开另外一个页面吗?

引用
protected void LinkButton10_Click(object sender, EventArgs e)
{
Response.Write("<script>window.open('UserInsert.aspx','','width=800,height=600')</script>");
Response.Write("<script>location='……
\(^o^)/,你说滴太对了,怪我代码太差劲呀


相关问答:

新人javascript问题求助,请各位大哥大姐们来帮忙!

这是我的文本框
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
提交按钮
<input clas ......

javascript中是值是怎么交换了? - Java / Java相关

三个数x,y,z 比大小..
var x,y,z,t;
if (x>y) 
{t=x;x=y;y=t;} //交换x,y的值 
if(x>z) 
{t=z;z=x;x=t;}//交换x,z的值 
if(y>z) 
{t=y;y=z;z=t;}//交换z,y的值
这是 ......

求下联 Java和JavaScript - Java / 非技术区

上联:Java和JavaScript

自己试试:
下联:面包和面包车

下联:SQL和MySQL
呵呵。

me and myself

下联:JavaScript和Java

兔子和兔子屎!


再来一个:C和C++

引用
下联:JavaScript和Jav ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号