I have an iframe that loads a list with links from another domain, and I do not want to change the links adress, but I want to change them so they get a onclick function as below. Is this possible at all?
The links in the iframe looks like this.
<div class="flip-entry" id="entry-1ERKvXXUHZHYAA9JLoOz4aau7Y0rTc14h2HucC0CulAM" tabindex="0" role="link">
<div class="flip-entry-info">
<a href="https://docs.google.com/drawings/d/1ERKvXXUHZHYAA9JLoOz4aau7Y0rTc14h2HucC0CulAM/edit?usp=drive_web" target="_blank">
<div class="flip-entry-title">Drawings demo</div>
</a>
</div>
</div>
I want to change all links in the iframe so they looks like this.
<a href="#" onclick="openInAppBrowser('https://docs.google.com/drawings/d/1ERKvXXUHZHYAA9JLoOz4aau7Y0rTc14h2HucC0CulAM/edit?usp=drive_web');">
I would like to do this with javascript first, but can be jQuery as well.
Thanks for any input!