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>")

Thanks~
Bob SchneiderCo-OwnerAsked:
Who is Participating?
 
AnuroopsunddConnect With a Mentor Commented:
<script>window.close();</script>
0
 
Bob SchneiderCo-OwnerAuthor Commented:
Same issue...I will turn of the error hiding and see what I get specificially
0
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.