I want to close a page if the user doesnt include the query string. this code kinda works, the problem is that when the javascrpit code runs, IE shows me a dialogbox telling me that the page is trying to close itself. and then it asks me if I want to close it or not. But I want the code to close the window automatically, what's wrong with this:

VB Code:
  1. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         Dim entryID As String = Request.QueryString.Item("entryID")
  3.         If entryID Is Nothing Then
  4.             Response.Write("<script>setTimeout(""self.close()"",1);</script>")
  5.         End If
  6.     End Sub