日期:2014-05-16  浏览次数:20443 次

为什么不能执行以下代码

每次运行这些都是直接运行response.Redirect( "../add_news.asp "),没有运行这句代码response.Write   " <script   language=JavaScript> "   &   "alert( '请把信息填写完整 '); "   &   "history.back() "   &   " </script> ",我想有选择后才可以运行下一句啊!

response.Write   " <script   language=JavaScript> "   &   "alert( '请把信息填写完整 '); "   &   "history.back() "   &   " </script> "

response.Redirect( "../add_news.asp ") '

------解决方案--------------------
response.Write " <script language=JavaScript> alert( '请把信息填写完整 ');location.href= '../add_news.asp '; </script> "