JavaScript『イベントハンドラー』
「とほほのWWW入門」http://www.tohoho-web.com/www.htm
「MDN」https://developer.mozilla.org/ja/docs/Web/JavaScript
| 順位 | 名前 | スコア | 称号 | 打鍵/秒 | 正誤率 | 時間(秒) | 打鍵数 | ミス | 問題 | 日付 |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | qqq | 3167 | すごいね! | 3.2 | 98.2% | 386.8 | 1247 | 22 | 23 | 2025/12/15 |
| 2 | mh | 2886 | すごいね! | 2.9 | 97.8% | 422.7 | 1247 | 27 | 23 | 2025/12/22 |
| 3 | mikaroko | 2251 | 頑張ったね! | 2.3 | 97.8% | 541.8 | 1247 | 27 | 23 | 2025/11/19 |
関連タイピング
-
プログラミングを学びたい方は是非!2013/07/03公開
プレイ回数36万1071打 -
String.instance_methods
プレイ回数74英字30秒 -
コマンドラインやプログラミング言語のタイピング練習用
プレイ回数2309英語長文90秒 -
Javaプログラミングにおける超入門タイピング練習です.
プレイ回数4570短文英字90秒 -
Javaプログラミング向け英単語集①
プレイ回数7959英字498打 -
プログラミングで良く使う英単語、構文のタイピングです!
プレイ回数3536短文英字429打 -
JavaScriptの暗記用です
プレイ回数2676英語長文504打 -
ホームポジションが自然と身につく!
プレイ回数984短文60秒
問題文
(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();