UPD There are index.html and index2.html files. Both of them are on the hosting, but in different folders Index.html is in the root, and index2.html is in the Mikula folder. How to make the transition from index.html to index2.html?

if (mouse.isPeekObject('LEFT', records)) { } 

It is necessary to stick the transition.

  • <a href="/Mikula/index2.html"> Go </a> or what is the question at all? - Komdosh
  • Yes, something like that. Are there any other methods? Because it gives an error on <> quotes - Vlad Kislyuk
  • I can not understand, where does JS come from and where does it give an error, give the code snippet where you want to get the desired behavior, otherwise I won’t be able to give you an answer more precisely. - Komdosh
  • How to open a link in the same way? - Vlad Kislyuk
  • What do you mean, under the open link? - Komdosh

1 answer 1

 if (mouse.isPeekObject('LEFT', records)) { window.location.href = "/Mikula/index2.html"; }