JavaScript script that responds to clicks on selected links

Closed job
no avatar
matt08
Employer
95 deals
Job category:
Desktop/web applications
Expected budget:

Negotiable

Preferable skills:
Published:
Valid until:

Job description

I will order writing a JavaScript script that will do something every time on the page someone clicks on a link containing a given string in the URL + retrieve a part of this URL to, for example, display it or pass it to another function.

Example:

Link has in a href URL https://domain.tld/go/somewhere

The script for all links on the page that have `/go/` in the URL displays an alert containing the name of the link (`somewhere`) when clicked.

Required functions: