JavaScript code added as attribute value Example: Click me Code: <button onclick="alert('Hello');">Click me</button>