I am encountering an issue with my embed code where the height changes randomly after a few seconds, depending on certain parameters. Here is an example of the code I am using:
$( <embed></embed>) .attr("src", "http://www.bbs.com")
.attr('id', 'bbs_embed')
.attr('width', 1440)
.attr('height', 300)
.appendTo("body")
;
After approximately 7 seconds, the height of the embed code changes to 1500px or more unpredictably. I am looking for a way to update its height dynamically from 300 to this new random height using Javascript / JQuery. How would I achieve this?