This Domain(Admin5.com) is for Sale:

网页常用代码小结

时间:2007-12-27  来源:不详  作者:林子

点击返回上页代码:

<form>

<p><input TYPE="button" VALUE="返回上一步" ONCLICK="history.back(-1)"></p> 织梦好,好织梦

</form>

织梦好,好织梦

弹出警告框代码: copyright dedecms

<form> 内容来自dedecms

<p><input TYPE="button" VALUE="弹出警告框" ONCLICK="AlertButton()"></p>

内容来自dedecms

</form> 内容来自dedecms

<script language="JavaScript"><!--
function AlertButton(){window.alert("要多多光临呀!");}

内容来自dedecms

// --></script>

dedecms.com

点击打开新窗口 内容来自dedecms

<form>
<p><input TYPE="button" VALUE="打开新窗口" ONCLICK="NewWindow()"></p>
</form>

织梦好,好织梦

<script language="JavaScript"><!--
function NewWindow(){window.open("","","height=240,width=340,status=no,location=no, toolbar=no,directories=no,menubar=no");}
// --></script></body>

copyright dedecms

删除记录时弹出确认框: 织梦内容管理系统

<script LANGUAGE="VBSCRIPT">

织梦内容管理系统

a=msgbox("真的要删除该记录吗?",1,"注重") 内容来自dedecms

if a=1 then
location="Dodelete.asp?id=" //指向执行删除的页面Dodelete.asp
else

copyright dedecms

history.go(-1)
end if
</script> 本文来自织梦

关闭打开的窗口

织梦内容管理系统

< a href="/" onclick="javascript:window.close(); return false;">关闭窗口</a> 织梦好,好织梦

本文来自织梦

看完这篇,您有何感觉呢?

文章评论

共有位Admini5网友发表了评论 查看完整内容

24小时热门信息