I have created a Google Maps map that I included on a webpage, by following these steps:
- click "Customize and preview embedded map"
- adjust the preview
- copy paste the URL under "Paste HTML to embed in website"
- paste the copied code into our webpage (
<iframe>
)
Now when clicking an area that I have created within the map (draw a shape) the user is able to click a link that points to another page within our website. But, the problem is that the page opens in the same <iframe>
, whilst it should open outside the <iframe>
.
When adding attributes like target="_blank"
or target="_top"
the attribute is stripped away by Google when saving the maps. Hence my embedded Google Maps map is useless for my website visitors.
Does anybody know how to make sure the window is opened outside the <iframe>
?