title: How to remove onload event from the dynamically generated iframe?
body: <pre><code>&lt;div class="voc_container content-container"&gt;
  &lt;div class="voc_content"&gt;
      &lt;h3 class="heading-small"&gt;Tell us what you think of this page&lt;/h3&gt;
      &lt;span class="voc_content_open"&gt;Take a short survey to give us your feedback&lt;/span&gt;
      &lt;span class="voc_content_close js-hidden"&gt;Close&lt;/span&gt;
      &lt;div class="voc_content_survey js-hidden"&gt;
      &lt;script id="ss-embed-380173"&gt;
      (function (d, w) { 
      var s, ss;
      ss = d.createElement('script');
      ss.type = 'text/javascript'; 
      ss.async = true; 
      ss.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + 
  'www.xxxxxx.co.uk/s/r/embed.aspx?i=341674&amp;c=380173';
  };
      s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ss, 
  s); })(document, window);&lt;/script&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;**strong text**
  </code></pre>
  
  <p>which generates the html as</p>
  
  <pre><code>&lt;iframe id="ss-embed-frame-380173" 
  src="https://www.xxxxxxx.co.uk/s/YEXFX/" frameborder="0" style="border: 
  0px currentColor; border-image: none; width: 100%; height: 400px; padding-
  bottom: 4px;" onload="window.scrollTo(0, document.getElementById('ss-embed-
  frame-380173').offsetTop);"&gt;&amp;lt;a 
  href="https://www.xxxxxxx.co.uk/s/YEXFX/"&amp;gt;Please take our 
  survey&amp;lt;/a&amp;gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>I tried using createelement to remove the listner </p>
  
  <pre><code>  ss.removeEventListener("onload","window.scrollTo(0, 
    document.getElementById('ss-embed-frame-380173').offsetTop);");
   ss.onload=function(){} 
  </code></pre>
  
  <p>to remove the onload event from the dynamically generated event, but its not removing. </p>
  
  <p>Could anyone can help me in guiding how to remove the onload event from the dynamically generated iframe element ???</p>
  
  <pre><code>onload="window.scrollTo(0, document.getElementById('ss-embed-
  frame-380173').offsetTop);
  </code></pre>