I have a problem with <a> tags.
I need to reassign an onclick event to this tag, but the href attribute must contain a link.
For example, I have some link:
<a href="http://en.wikipedia.org">Wikipedia</a>
And i need to change only the onclick event for this link so that when I click on it, some JavaScript function is called.
Don’t forget to return false in ‘onclick’, or browser will handle click and open link in href.