js各种框的总结
来源:互联网 发布:企业画像 大数据 编辑:程序博客网 时间:2024/06/08 19:55
简单的三个框
警告框
<html>
<head>
<script type="text/javascript">
function disp_alert()
{
alert("我是警告框!!")
}
</script>
</head>
<body>
<input type="button" onclick="disp_alert()" value="显示警告框" />
</body>
</html>
确认框
<html>
<head>
<script type="text/javascript">
function show_confirm()
{
var r=confirm("Press a button!");
if (r==true)
{
alert("You pressed OK!");
}
else
{
alert("You pressed Cancel!");
}
}
</script>
</head>
<body>
<input type="button" onclick="show_confirm()" value="Show a confirm box" />
</body>
</html>
提示框
<html>
<head>
<script type="text/javascript">
function disp_prompt()
{
var name=prompt("请输入您的名字","Bill Gates")
if (name!=null && name!="")
{
document.write("你好!" + name + " 今天过得怎么样?")
}
}
</script>
</head>
<body>
<input type="button" onclick="disp_prompt()" value="显示提示框" />
</body>
</html>
- js各种框的总结
- Js对Array的各种操作总结
- js各种宽高的总结
- js各种基础总结
- js里使用的各种元素大小尺寸属性总结
- Js各种继承方法总结
- js 各种验证小总结
- js实现各种排序总结
- js获取各种高度总结
- js的浏览器各种提示框
- js的各种验证
- js 的各种限制
- 各种数据库连接的总结
- 各种互斥量的总结
- 各种函数的总结
- 各种排序的总结
- 各种输入的总结
- 各种DP的总结
- UITextView
- 打包可执行程序,检查安装环境
- ajax 和 forword
- [分布式java]基于JavaAPI实现消息方式的系统间通信:TCP/IP+NIO
- 文件和文件目录重命名问题
- js各种框的总结
- 针对url参数的加密解密算法(原创)
- 【pushing my way】笛卡尔树
- 把txt文件转换成pdf格式的方法
- Treasure Hunt IV
- 这里讨论二个 PHP CURL CURLOPT 参数
- VMware虚拟机 ubuntu忘记密码解决方法
- Druid数据库连接池使用
- MongoDB知识点