Append base target HTML to Google Maps iframe with jQuery
I am using Google Maps in an iframe on my client's website and the locations on the map have external links in their descriptions. When the links are clicked, the external website loads within the iframe. I am wanting to figure out a way for the external links to open in a new browser window using jQuery. I have looked into jQuery append() and appending the base target HTML attribute to the head of the iframe tag, but I have been unable to make it work.
Can anyone provide some assistance with this issue?
Could you get all the a tags iframe and use attr to add a target to each link $('a').attr('target','_blank');