易截截图软件、单文件、免安装、纯绿色、仅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在页面中动态更新某一块的内容?

我的源文件如下:
<html>
<head> <title>show picture </title>
<script>
function change(fileName)
    {
     
    ......

100分求助一个问题:改造一个Javascript代码

我手边有csdn论坛弹出信息窗口的代码(可以从http://www.codefans.net下载),但它显示的只是固定的信息,现在想改造一下以便能通过后台调用Sql Server 2000数据库自动将数据表中的信息作为弹出窗口显示的信息。csdn论 ......

javascript怎么读xml文件

<dataset>
<tb1>
<GpsNumber>5</GpsNumber>
<latitude>40.00521148755632</latitude>
<longitude>116.03625414562144</longitude>
<Revtime>2 ......

添加到收藏夹javascript脚本出错

JScript code:
function fnAddFav(title, url) {
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, &quo ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号