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

背景
投稿者投稿者marineいいね11お気に入り登録3
プレイ回数2529難易度(4.5) 1247打 英語
JavaScript 暗記用です
★情報元のサイト様★
「とほほのWWW入門」http://www.tohoho-web.com/www.htm
「MDN」https://developer.mozilla.org/ja/docs/Web/JavaScript
順位 名前 スコア 称号 打鍵/秒 正誤率 時間(秒) 打鍵数 ミス 問題 日付
1 ku 4733 エキスパート! 4.7 99.5% 262.2 1247 6 23 2024/03/14
2 ZITO 2512 すごいね! 2.5 98.4% 488.4 1247 20 23 2024/03/01

関連タイピング

問題文

ふりがな非表示 ふりがな表示

(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();

問題文を全て表示 一部のみ表示 誤字・脱字等の報告

◆コメントを投稿

※誹謗中傷、公序良俗に反するコメント、個人情報の投稿、歌詞の投稿、出会い目的の投稿、無関係な宣伝行為は禁止です。削除対象となります。

※このゲームにコメントするにはログインが必要です。

※コメントは日本語で投稿してください。

marineのタイピング

オススメの新着タイピング

タイピング練習講座 ローマ字入力表 アプリケーションの使い方 よくある質問

人気ランキング

注目キーワード