R
R
rinatoptimus2021-03-17 17:22:29
JavaScript
rinatoptimus, 2021-03-17 17:22:29

Is it possible to manipulate Yandex map elements?

There is a page with Yakarta. The page code is available, but there is no possibility to edit the map.
Is it possible to implement the following without having access to the map code: when you click on a certain balloon (there are already balloons on the map), a certain link opens.
This code simply appends a new URL to the current URL in the address bar:

var BTN = document.getElementById('id_161598474410587029032');

function MyFunction() {
  location.href = 'yandex.ru'; 
}

BTN.onclick = MyFunction();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question