Skip to content
Advertisement

Hyperlink does not work in HTML code that connected with JS code

I’m creating an interactive map for office locations to make it easier for clients to reach out to the nearest office. I use HTML file, CSS file, and JS file together for this map. Everything works fine except when your point out a location on the map, information about the nearest office should popup on the right side of the screen. This information includes a hyperlink to the office’s website. The problem is that the hyperlink looks fine (blue and underlined) but it is not clickable. I mean the link does not work.

I tried all possible solutions to solve that. Can you help me? Thanks in advance.

This is the HTML file

JavaScript

This is the JS file

JavaScript

And this is the CSS file

JavaScript

Advertisement

Answer

As s.kuznestov said, many of your tags are not closed, replace your HTML code like below-

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement