SetTimeout() method within an
<a> element that sets a delay (to allow time for an animation to play out) before opening the destination link in question.
When I click on the link in Firefox I get taken to a white page with the number 2 in the top left hand corner of the screen.
Opera, Chrome, Edge, AVG Secure Browser – all work as expected and open the destination link as expected.
I’ve stripped down the code to the bare minimum in order to isolate the problem and realise that it is the in-line JS within the link that Firefox does not like (or is completely ignoring!) Whatever it is, I get no warnings or exceptions thrown when looking in FF developer tools.
At first we thought this could be an IDE problem or server related issue but those possibilities have been eliminated.
Has anyone seen this problem before or know why I’m encountering this purely in Firefox?
Any help would be greatly appreciated, so, thanks in advance for any assistance you can provide.