实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script>
5
function myFunction()
6
{
7
alert("Hello World!");
8
}
9
</script>
10
</head>
11
12
<body>
13
14
<button onclick="myFunction()">Try it</button>
15
16
<p>By clicking the button above, a function will be called. The function will alert a message.</p>
17
18
</body>
19
</html>