Here is the code:
<h2>Change Link's Text</h2>
<div onMouseOver="this.innerHTML = 'RoseIndia'"
onMouseOut="this.innerHTML = 'Java Tutorials'">Java Tutorials</div></a>
Output will be displayed as:
On passing the mouse pointer over the link, it will change the text:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.