How can I open a new follow up non-marketo page after someone fills out a form in an iframe?

Anonymous
Not applicable

How can I open a new follow up non-marketo page after someone fills out a form in an iframe?

Right now our follow up page is opening in the iframe.  I'd like it to open in the whole window.  I know this can be done with some code.  What is that code and where should I put it?
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: How can I open a new follow up non-marketo page after someone fills out a form in an iframe?

The html code should be <a href="followup page" target="new"> but let me see where to input it.
Anonymous
Not applicable

Re: How can I open a new follow up non-marketo page after someone fills out a form in an iframe?

The alternative is on the follow up page itself, you can add a "frame breaker" code so no matter what it goes to it's own page.

I found this code as an example on http://www.thesitewizard.com/archive/framebreak.shtml:

<head>
<script language="JavaScript" type="text/javascript">
<!--
function breakout_of_frame()
{
  // see http://www.thesitewizard.com/archive/framebreak.shtml
  // for an explanation of this script and how to use it on your
  // own website
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}
-->
</script>
</head> 
Anonymous
Not applicable

Re: How can I open a new follow up non-marketo page after someone fills out a form in an iframe?

Thanks for your help!  I found the answer here with a little more digging: https://community.marketo.com/MarketoArticle?id=kA050000000Kzac