JS基本按鈕呼叫彈出視窗-01(按鈕呼叫js單純提示對話合dialog-alert)
資料來源:http://easonyo.pixnet.net/blog/post/25035463-javascript-%E5%BD%88%E5%87%BA%E5%B0%8F%E8%A6%96%E7%AA%97
<!DOCTYPE html>
<html>
<body>
<p>Click the button to display an alert box:</p>
<button onclick=”myFunction()”>Try it</button>
<script>
function myFunction() {
alert(“I am an alert box!”);
}
</script>
</body>
</html>
|