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

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: 2020-01-30T06:13:20+05:30

139 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements