0
How to show pop up text onClick
I would like to show some text when someone clicks a particular text. Sort of an alert and the user just has to click ok after reading the text. The text is a whole block element <div> containing about 5 paragraphs and is found in the html section of the document.
1 ответ
+ 3
<span onclick="alert(this.textContent)">some text</span>