这个,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>");
}
貌似你这里有点问题把!你又打开另外一个页面,又返回到前面去,不等于没有打开另外一个页面吗?
\(^o^)/,你说滴太对了,怪我代码太差劲呀
相关问答:
我的源文件如下:
<html>
<head> <title>show picture </title>
<script>
function change(fileName)
{
  ......
我手边有csdn论坛弹出信息窗口的代码(可以从http://www.codefans.net下载),但它显示的只是固定的信息,现在想改造一下以便能通过后台调用Sql Server 2000数据库自动将数据表中的信息作为弹出窗口显示的信息。csdn论 ......
<dataset>
<tb1>
<GpsNumber>5</GpsNumber>
<latitude>40.00521148755632</latitude>
<longitude>116.03625414562144</longitude>
<Revtime>2 ......
JScript code:
function fnAddFav(title, url) {
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, &quo ......