ASP Script Not Closing Window

This is a script I use to close a window if the record is deleted.  It works if I open a browser on the server but it throws an error elsewhere.  Any idea what is wrong with it?

Response.Write("<script type='text/javascript'>{window.close();}</script>")

Bob SchneiderCo-OwnerAsked:
Who is Participating?
AnuroopsunddConnect With a Mentor Commented:
Bob SchneiderCo-OwnerAuthor Commented:
Same issue...I will turn of the error hiding and see what I get specificially
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.