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.