Here is the code:
<h2>Text property of the Link object</h2>
<input type="checkbox" onclick="getText()">
Click the checkbox to get the text value of the link.
<a href="http://www.roseindia.net">Welcome to RoseIndia</a>
Output will be displayed as:
On clicking the checkbox, you will get the text value of link:
Posted on: April 18, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles