JavaScript script that responds to clicks on selected links

Employer
no avatar
matt08
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.

Published
on 2022-09-04

Offers sent (18)

Budget
Negotiable
Copyright
-
Expires in
30 days