JavaScript『イベントハンドラー』

「とほほのWWW入門」http://www.tohoho-web.com/www.htm
「MDN」https://developer.mozilla.org/ja/docs/Web/JavaScript
順位 | 名前 | スコア | 称号 | 打鍵/秒 | 正誤率 | 時間(秒) | 打鍵数 | ミス | 問題 | 日付 |
---|---|---|---|---|---|---|---|---|---|---|
1 | ku | 4781 | エキスパート! | 4.8 | 99.0% | 258.3 | 1247 | 12 | 23 | 2025/04/16 |
関連タイピング
-
プログラミングを学びたい方は是非!2013/07/03公開
プレイ回数35万1071打 -
タッチタイピングをマスターしたい方向けの問題です。
プレイ回数8398長文英字411打 -
全記号数字タイピング練習(108文字×100問,2分間ランダム)
プレイ回数6015英語長文120秒 -
コマンドラインやプログラミング言語のタイピング練習用
プレイ回数798英語長文90秒 -
C言語を写経で覚える
プレイ回数1万英語長文1313打 -
JAVAの練習用です。
プレイ回数790長文120秒 -
JavaScript 暗記用です
プレイ回数1676英語長文770打 -
プレイ回数346英語長文90秒
問題文
(const img=document.getElementById('img'); img.onabort=()=>alert('load aborted');)
const img=document.getElementById('img'); img.onabort=()=>alert('load aborted');
(const input=document.querySelector('input'); input.onfocus=()=>input.style.background='pink';)
const input=document.querySelector('input'); input.onfocus=()=>input.style.background='pink';
(input.onblur=()=>input.style.background='gray';)
input.onblur=()=>input.style.background='gray';
(input.onkeydown=()=>input.style.background='yellow';)
input.onkeydown=()=>input.style.background='yellow';
(input.onkeyup=()=>input.style.background='lime';)
input.onkeyup=()=>input.style.background='lime';
(const area=document.getElementById('area'); area.oninput=()=>area.style.color='red';)
const area=document.getElementById('area'); area.oninput=()=>area.style.color='red';
(area.onchange=()=>area.style.color='red';)
area.onchange=()=>area.style.color='red';
(const btn=document.getElementById('btn'); btn.onclick=()=>alert('clicked');)
const btn=document.getElementById('btn'); btn.onclick=()=>alert('clicked');
(btn.ondblclick=()=>alert('dblclicked');)
btn.ondblclick=()=>alert('dblclicked');
(const body=document.getElementById('body'); body.onerror=()=>alert('error');)
const body=document.getElementById('body'); body.onerror=()=>alert('error');
(const form=document.querySelector('form'); form.onsubmit=()=>window.confirm('onsubmit');)
const form=document.querySelector('form'); form.onsubmit=()=>window.confirm('onsubmit');
(form.onreset=()=>window.confirm('onreset');)
form.onreset=()=>window.confirm('onreset');
(const box=document.getElementById('box'); box.onmouseover=()=>box.innerHTML+='+over';)
const box=document.getElementById('box'); box.onmouseover=()=>box.innerHTML+='+over';
(box.onmousemove=()=>box.innerHTML+='+move';)
box.onmousemove=()=>box.innerHTML+='+move';
(box.onmousedown=()=>box.innerHTML+='+down';)
box.onmousedown=()=>box.innerHTML+='+down';
(box.onmouseup=()=>box.innerHTML+='+up';)
box.onmouseup=()=>box.innerHTML+='+up';
(box.onmouseout=()=>box.innerHTML+='+out';)
box.onmouseout=()=>box.innerHTML+='+out';
(window.onload=()=>alert('hello');)
window.onload=()=>alert('hello');
(window.onresize=()=>console.log('resize');)
window.onresize=()=>console.log('resize');
(window.onscroll=()=>console.log('scroll');)
window.onscroll=()=>console.log('scroll');
(window.onselect=()=>alert('selected');)
window.onselect=()=>alert('selected');
(window.addEventListener('load',()=>alert('OK'));)
window.addEventListener('load',()=>alert('OK'));
(EventTarget.removeEventListener();)
EventTarget.removeEventListener();
パンサーfkのお気に入り
- ◊JavaScript『イベントハンドラー』
- ◊javascript練習用1
- ◊html link関連
- ◊CSS打ち
- ◊htmlタグ form編
- ◊CSS 2
- ◊New■HTMLの要素2/2
- ◊cssのよく使うプロパティ
- ◊htmlタグ コンテンツの分類編
- ◊PDO処理
- ◊JS5
- ◊左手薬指のみ