javascript常用代码

 

OnClientClick="return confirm('are you sure you want to delete this file?');" 

window.alert('') //弹出对话框
window.close() //关闭窗口
window.confirm('') //确认对话框
window.location.href='' //页面转向,貌似可以通过top.location.href='' 来指定top框架的页面,同理可指定left"right等框架的页面
window.open('','') //弹出窗口,example: window.open('a.aspx','_blank')

posted on 2008-12-02 16:34  prayforsmile  阅读(159)  评论(0编辑  收藏  举报