关于imageButton事件中怎样设置target=_blank
imageButton我编写了个事件,response.redirect("a.aspx")但是我想在新窗口中打开,imageButton如何设置target=_blank
1、response.write("<script language='javascript'>window.open('index.html');</script>");
2、在page.load中:
imagebutton.attributes.add("onclick","javascript:return showopen();");
在html页:
<script language="javascript">
<!--
function showopen()
{
window.location("index.html");