To display the text of all paragraphs in an alert box the first time each of them is clicked:
Edit code and click me
Your Result
(Some examples do not work in Google Chrome):
Paragraph 1
Paragraph 2
Paragraph 3
Paragraph 4
Click a paragraph...
Edit the code above and click to see the result
www.xhtml.co.il
- Try it yourself