弹出框提示 四
来源:互联网 发布:阿里云rds创建数据库 编辑:程序博客网 时间:2024/05/22 11:46
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body>
<script src='cf.js' type='text/javascript'></script>
<h1>我的第一段 JavaScript</h1>
<p>
JavaScript 能够对事件作出反应。比如对按钮的点击:
</p>
<button type="button" onclick="alert('Welcome!')">点击这里</button>
<button type="button" onclick="mm()">点击这里</button>
<script>
//在这里编写嵌入html
function moveon() {
//通过弹出一个对话框来询问用户一个问题
var answer = confirm("准备好了吗?");
if(answer) window.location = "http:/taobao.com";
}
setTimeout(moveon,6000);
</script>
</body>
</html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body>
<script src='cf.js' type='text/javascript'></script>
<h1>我的第一段 JavaScript</h1>
<p>
JavaScript 能够对事件作出反应。比如对按钮的点击:
</p>
<button type="button" onclick="alert('Welcome!')">点击这里</button>
<button type="button" onclick="mm()">点击这里</button>
<script>
//在这里编写嵌入html
function moveon() {
//通过弹出一个对话框来询问用户一个问题
var answer = confirm("准备好了吗?");
if(answer) window.location = "http:/taobao.com";
}
setTimeout(moveon,6000);
</script>
</body>
</html>
0 0
- 弹出框提示 四
- Eclipse Rcp系列 四 弹出提示窗口
- 自动弹出提示框
- POPHint 弹出提示框
- POPHint 弹出提示框
- winfrom弹出提示框
- 点击弹出提示框
- js弹出提示框
- 弹出自定义提示框
- Android 弹出提示框
- 温馨提示弹出框
- Alert 弹出提示框
- android 弹出提示框
- Android弹出提示框
- 弹出提示框
- jquery弹出提示框
- 弹出提示框
- android 弹出提示框
- sigaction函数使用实例
- OpenGl初学
- Strutus2配置之配置struts.xml文件(package,namespace,action)
- Android,xmpp
- Unity3D中使用委托和事件
- 弹出框提示 四
- 学习指南之一
- Unity3D中常用的数据结构总结与分析
- HttpUrlConnection
- 剑指Offer面试题42:翻转单词顺序;左旋转字符串 Java实现
- 网络html源码更改
- pullToRefresh
- android selector(如对TextView点击样式改变) - perfect亮
- Java关系运算符