I would approach this one of two ways:
- Use a
target
attribute in the link to open it in an iframe (not universal across browsers) - Use JavaScript to replace the
src
attribute on your iframe
Option 1:
<a href="https://wordpress.stackexchange.com/questions/118983/somethirdpartysite.com/reg" target="thirdparty">Register</a>
<iframe name="thirdparty"></iframe>
Option 2:
<a href="https://wordpress.stackexchange.com/questions/118983/somethirdpartysite.com/reg" class="iframeit">Register</a>
<iframe src="#" name="thirdparty"></iframe>
<script>
$('.iframeit').click(function(event) {
event.preventDefault();
var theSrc = $(event.target).attr('href');
$('iframe[name="thirdparty"]').attr('src',theSrc);
});
</script>