Edit This Code:
See Result »
A demonstration of how to access a LEGEND element
Personalia:
Name:
Click the button to get the text of the legend element.
Try it
Result: