I need to close the parent window which opens a pop up.I have tried the following: Response.Write("<script>"); Response.Write("window.open('http://URL_IPadd:8000/Pages/ValidateUser.aspx?JVId=PW0000001&SessionId=1000&IsAdmin=Y&RoleName=Self','PORTFOLIOTRACKER',' scroll=true,resizable=yes,toolbar=no,location=no,directories=no,dependent=no,fullscreen=no,status=yes,left=0,top=0,height='+screen.height-60+',width='+screen.width-5);"); Response.Write("window.opener.close();"); Response.Write("</script>")
First off, the format: Response.Write("<script>"); Is incorrect. It's: Response.Write "<script>" Second, repeating Response.Write is redundant. Try: Response.Write "<script>" & vbNewline & _ window.open('http... & vbNewline & _ Third, it appears that you are writing javascript, and if your original vbscript was to work, it would be writing javascript that wouldn't work.