HTML5 SVG css3 transition on fill not working when there is external link


This cannot be done through the visited state. The best solution is to add a random query to url so that page go unvisited.

<a href = "http:/demo.com/?foo = <?php echo rand(0, 99998) ?>"Your link</a> 

It can be removed with JS by onclick event:

$('body').on('click', 'a', function(p) {
   p.preventDefault();
   var url1 = $(this).prop('href');
   window.location.href = url1.split("?")[0];
});

Updated on: 30-Jan-2020

63 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements