Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Question 7
- let countries = map.getElementsByTagName('path');
- for(let i = 0; i < countries.length; i++) {
- let country = countries[i];
- country.addEventListener('click', function() {
- document.getElementById('titre_pays').innerText = this.getAttribute('title');
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement