D
D
DrunkMaster2017-09-06 15:45:02
network hardware
DrunkMaster, 2017-09-06 15:45:02

How to block the opening of a link but JS what would work?

How to make sure that when clicking on the link, there is no transition, but ajax works?

<span class="my">
  <a href="https://">линк</a>
</span>

$('span.my').click(function(){
  //ajax-код
}

Yes, it's strange, but the idea is that the link can actually be followed if JS is disabled or if you press the right button and select "open in a new window".

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Keffer, 2019-05-18
@Keffer

There is no alternative in the case of optics .. Only provider equipment. At the output of this sercom, put whatever your heart desires, even a kilowatt Wi-Fi with coverage of the entire city

S
Sasorinka, 2020-04-10
@Sasorinka

Well, look, you must definitely take one that pulls without failures and disruptions to the distance you need. I myself have a 2-storey house in the country, it was difficult to find a normal modem to drag the network to the whole house. The old Mikrotik pulled normally, but for some reason, after a month it began to crackle and every year the crack intensified, I couldn’t stand it anymore, then it completely died out ... and that’s how they advertised it to me, but it turned out ... Therefore, I decided to take it from competitors while I installed this TP-LINK TD-W8960N ADSL https://klaster.ua/shop/peredacha-dannyh/setevoe-o..., set up quickly from the installation disk via a cable (then removed it), it works without crashes and cod, although this is not there, it’s already unusual. By the way, it even has lightning protection, let's see if it really survives, otherwise we have a house next to a reservoir, lightning often happens here when there is a thunderstorm.

G
gleendo, 2017-09-06
@DrunkMaster

// Зачем тогда вообще использовать ссылку, если вы не собираетесь по ней переходить?
event.preventDefault()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question