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?

Thank you.

Mike

Answers


Could you get all the a tags iframe and use attr to add a target to each link $('a').attr('target','_blank');


Need Your Help

How to get multisite wordpress blog's custom fields rss feed

wordpress rss wordpress-plugin

I have multisite Wordpress blog that have three custom fields that have text heading for micro blog and two image fields. I want to get these are also in rss feed. I have tried this stack overflow ...

Adding custom SOAP headers to client generated by weblogic.wsee.tools.anttasks.ClientGenTask?

web-services weblogic header

I generated a client using the weblogic.wsee.tools.anttasks.ClientGenTask from weblogic. Now I want to insert custom soap headers before sending out the request. How do I go about doing that? Al...