javascript - Remove the tabindex the google maps in my page -


i need remove tabindex map on page. used code below tab passes through markers on map , google logo.

var map = new google.maps.map(document.getelementbyid('map'),             mapoptions);      //remove o tab mapa       google.maps.event.addlistener(map, 'tilesloaded', function() {           var mapcontent = (document.getelementbyid("map"));           mapcontent('a').attr('tabindex',-1);                 }); 

building off vasil's answer

google.maps.event.addlistener(map, "tilesloaded", function(){     [].slice.apply(document.queryselectorall('#map a')).foreach(function(item) {         item.setattribute('tabindex','-1');     }); }) 

here in action.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -