翱翔.Net

释放.Net的力量
posts - 75, comments - 1131, trackbacks - 5, articles - 18
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

ASP常用弹出框javascript函数

Posted on 2004-07-16 09:13 Hover 阅读(1670) 评论(0)  编辑 收藏
<script language="javascript">
function confirmDel(id){
if ( confirm("你确定要删除吗?")) {
window.location.href = "newsmanage.asp?action=delete&id=" + id
  }
}
</script>
 
<a href='javascript:confirmDel(<%= rs("id") %>)'>删除</a></td>

Response.Write("<script language=JavaScript>" & chr(13) & "alert('请输入内容!');" & "history.back()" & "</script>" )

Response.Write "<script language=JavaScript>" & chr(13) & "alert('操作成功!');"&"window.location.href = 'admin_edit.asp'"&" </script>"