点击一个按钮,会关闭本页面的函数,该怎么处理

点击一个按钮,会关闭本页面的函数
点击一个按钮,会关闭本页面,我用的是Response.Write( " <script> javascript:window:close() </script> ");    
虽然实现了这个功能,但是在关闭的时候,会弹出一个对话框,我不想要这一个对话框,直接关闭的函数有吗?
急需,谢谢

------解决方案--------------------
Response.Write( " <script> javascript:window.opner=null;window:close() </script> ");

------解决方案--------------------
那是你的问题了,我用的时候都没有提示啊 你在哪里实现的?GridView中的Button ??
如果是 GridView 中的子 Button , 检查 GridView_RowDataBound()事件中是不是有
Button BN=(Button)e.Row.FindControl( "按钮ID ");
if(BN !=null)
{
BN.Attributes.Add( "onclick ", "return confirm( 'Sure to close ? ') ");
}
的程序段,并确定按钮的ID跟Button的ID一样。一样的话,就删掉这段代码;

如果是Repeater中的按钮的话,一样检查下
如果只是单个按钮,看Button_click事件中是不是也有 Button.Attributes.Add( "onclick ", "return confirm( 'Sure to close ? ') ");
的代码段。有就删掉,总之,你看看后台代码有这样的代码段就删掉好了,确定代码段中的ID是Button 的ID
------解决方案--------------------
何必那么麻烦来...


window.opener= ' ';
window.close();
------解决方案--------------------
其实就是1楼的方法,只不过他打错字了....
------解决方案--------------------
点击按钮无提示 关闭窗口
<input type= "button " onClick= "window.opener= 'xxx ';window.close(); " value= "IE6最简单的无提示关闭窗口 " >