title: Handle Click Events with JavaScript using the onclick property
challengeType: 6
videoUrl: ''
localeTitle: 'Ручка Нажмите «События» с помощью JavaScript, используя свойство onclick'
---
## Description
undefined
## Instructions
undefined
## Tests
<sectionid='tests'>
```yml
tests:
- text: ''
testString: 'assert(code.match(/document\.getElementById\(\s*?("|")getMessage\1\s*?\)/g), "Your code should use the <code>document.getElementById</code> method to select the <code>getMessage</code> element.");'
- text: ''
testString: 'assert(typeof document.getElementById("getMessage").onclick === "function", "Your code should add an <code>onclick</code> event handler.");'