Allow Javascript to close Tab in firefox 2.0 and greater

under ff 2 you have to set manually under about:config
dom.allow_scripts_to_close_windows to true
then it’ll work


Otherwise javascipt will need to open the window to allow for it to be able to close it.

Send to a standard page if incorrect page access

        If Not IsPostBack Then
            If PreviousPage Is Nothing Then
                Response.Redirect(“default.aspx”)
            End If
        End If