Skip to navigation

Question:
How to cound elements inside a link tag with javascript?

Avoid captive user interfaces.