<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="utf-8">
    <title>JavaScript Event Blur</title>
</head>
<body>
    <input type="text" onblur="alert('Input teks kehilangan fokus!')">
    <button type="button">Kirimkan</button>
	<p><strong>Catatan:</strong>Pertama klik di dalam kotak input teks lalu klik di luar untuk melihat cara kerjanya.</p>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.