JavaScript script that responds to clicks on selected links

Empleador
no avatar
matt08
Descripción

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.

Publicado
el 2022-09-04
Habilidades

Ofertas enviadas (18)

Presupuesto
Negociable
Derechos de autor
-
Válido por
30 días