title: Redirect if element is shown in embedded form
body: <p>I need your help redirecting the page which has embedded form and if the element is shown, I want it to redirect to a certain page. Thank you!</p>
  <pre><code>&lt;script&gt;
  if ( receipt number (element) is shown it will redirect below ) {
    window.location.href = &quot;https://www.example.com&quot;;
  }
  &lt;/script&gt;
  </code></pre>