M
M
MeMoJlor2020-08-21 01:06:36
JavaScript
MeMoJlor, 2020-08-21 01:06:36

How to make a link transition delay in a page using pure JS?

There is this script:

<a href="#" onclick="url=this.href;setTimeout('location.href=url',600);this.href='javascript:void(0)';">cсылка</a>

It works, only after navigating and returning, it blocks the link to Safari. Can't re-click on the link. Are there analogues of the script or can you disable the script on Safari?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-08-21
@MeMoJlor

;this.href='javascript:void(0)';->;return false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question