如何在asp中添加javascript的内容,比如弹出对话框alter,能否显示出来
1个回答
展开全部
response.write "<script language='javascript'>" & chr(13)
response.write "alert('提交成功!');" & Chr(13)
response.write "window.document.location.href='XXX.asp';"&Chr(13)
response.write "</script>" & Chr(13)
Response.End-----提交后转到XX页
========================================================
response.write "<script language='javascript'>" & chr(13)
response.write "alert('提交成功!');" & Chr(13)
response.write "javascript:window.close();"&Chr(13)
response.write "</script>" & Chr(13)
Response.End-----提交后关闭当前页
========================================================
response.write "<script language='javascript'>" & chr(13)
response.write "alert('提交成功!');" & Chr(13)
response.write "history.go(-1);"&Chr(13)
response.write "</script>" & Chr(13)
Response.End-----提交后返回上一步
response.write "alert('提交成功!');" & Chr(13)
response.write "window.document.location.href='XXX.asp';"&Chr(13)
response.write "</script>" & Chr(13)
Response.End-----提交后转到XX页
========================================================
response.write "<script language='javascript'>" & chr(13)
response.write "alert('提交成功!');" & Chr(13)
response.write "javascript:window.close();"&Chr(13)
response.write "</script>" & Chr(13)
Response.End-----提交后关闭当前页
========================================================
response.write "<script language='javascript'>" & chr(13)
response.write "alert('提交成功!');" & Chr(13)
response.write "history.go(-1);"&Chr(13)
response.write "</script>" & Chr(13)
Response.End-----提交后返回上一步
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询