Hello,
I have a link that carrys out a DHTML function within my page, and once this link is clicked, i use the following js to change the text of the link.
In an external js file
function exp(obj) {
var el = document.getElementById(obj);
el.innerHTML = 'This text has changed!';
}
The link
<a name="a" href="javascript:exp('a');">Click here!</a>
So, once clicked, the text changes from Click here!, to This text has changed!. But i want to be able to revert to the original text, once the link is clicked again.
An example is http://demo.rockettheme.com/apr07/ The top panel 'Open Control Panel' changes and then reverts the link text on subsequent clicks.
Any help please?