嗨,在我的网站上,它有一个关闭按钮点击它我想清理缓存并关闭网站
Public Sub CloseIM_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles button
Try
Session.Item("UserName") = Nothing
Session.RemoveAll()
Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0))
Response.Expires = 0
Response.CacheControl = "no-cache"
Response.Write("<script language='javascript'> { self.close() }</script>")
'' i used above line to close but it is not working in google chrome working properly in IE all versions
End sub
我使用Response.Write(&#34; {self.close()}&#34;)关闭,但它在Google Chrome中不起作用 提前谢谢