protected void Button4_Click(object sender, EventArgs e)
{
Response.Write("<script>window.open('search2toexcel.aspx?id1=" + DropDownList1.SelectedValue + "&id2=" + TextBox1.Text + "&id3=" + TextBox2.Text + "&id4=" + TextBox4.Text + "&id5=1');</script>");
}弹出窗口后,焦点定位在新窗口,但是1秒后焦点有定位在原来的窗口了? 请教如何解决? 先谢谢了!
{
Response.Write("<script>window.open('search2toexcel.aspx?id1=" + DropDownList1.SelectedValue + "&id2=" + TextBox1.Text + "&id3=" + TextBox2.Text + "&id4=" + TextBox4.Text + "&id5=1');</script>");
}弹出窗口后,焦点定位在新窗口,但是1秒后焦点有定位在原来的窗口了? 请教如何解决? 先谢谢了!
Response.Write(" <script>owin = window.open('search2toexcel.aspx?id1=" + DropDownList1.SelectedValue + "&id2=" + TextBox1.Text + "&id3=" + TextBox2.Text + "&id4=" + TextBox4.Text + "&id5=1');owin.focus();</script> ");