How to open iFrame external link in parent window

I am developing a website having an iFrame on the main page. I have embedded an external link (affiliate site) into this iFrame which contains a form. What I want is that on submitting the form the result page of that affiliate site should open in my main window with my affiliate ID attach with it.

Is this possible with the simple HTML? Or I will have to use the javascript to get my desire result? I know nothing about the scripting, please suggest me the possible solution for my query as I am new to site development field.

You can get any link (including from a frame or iframe) to open in the current window/tab by using <a href=“...” target=“_top”>.

It depends how you’re getting people to the page after the ‘submit’.