00分00.00秒
0 0
コンボLv.
1
全20行のプログラムです
読み込み中...
<!doctype html>↲
<html lang="ja">↲
→<head>↲
→→<meta charset="utf-8">↲
→</head>↲
→<body>↲
→→<h1 id="mess"></h1>↲
→→<button onclick="hello();">あいさつ</button>↲
→→<button onclick="reset();">くりあ</button>↲
→→<script>↲
→→→let ele=document.getElementById("mess");↲
→→→function hello(){↲
→→→→ele.innerHTML="こんにちわ";↲
→→→}↲
→→→function reset(){↲
→→→→ele.innerHTML="";↲
→→→}↲
→→</script>↲
→</body>↲
</html>