Answer the question
In order to leave comments, you need to log in
How to substitute title text in a link using JS?
How to do. so that when you click on a link, the title with the class .maintitle
is substituted at the end of the path of this link and goes to it?
<h1 class="maintitle">Музей Искусств</h1>
<a class="map-link" href="https://yandex.ru/maps/krasnodar/"></a>
Answer the question
In order to leave comments, you need to log in
.maintitle
href
of the clicked linkDidn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question