TechForge

18th May 2016

Share this story:

Tags:

Categories::

iframe#videoPlayerIframe {
background-color: white; /* remove or change this declaration to look nice on the parent site */
border: 0px solid white;
height: 6500px; /* this is a guess of the default height of the embedded page */
overflow: hidden;
padding: 0px;
width: 780px; /* change this declaration to look nice on the parent site */
}

(function($) {
var height, newHeight;
$(window).on(‘message’, function(e){
try{
newHeight = e.originalEvent.data;
if(newHeight && (height != newHeight)){
$(‘#videoPlayerIframe’).height(newHeight);
height = newHeight;
}
}catch(e){}
});
})(jQuery);

About the Author

Senior Editor

Ryan Daws is a senior editor at TechForge Media with over a decade of experience in weaving narratives and dissecting complex topics. His articles and interviews with industry leaders have earned him recognition as a key tech influencer from numerous organisations. Under his leadership, publications have been praised by analyst firms for their excellence and performance. Connect with him on X, Mastodon, Bluesky, Threads, and/or LinkedIn.

Related

20th August 2026

19th August 2026

17th August 2026

12th August 2026

Join our Community

Subscribe now to get all our premium content and latest tech news delivered straight to your inbox

Popular

20090 view(s)
10270 view(s)
5817 view(s)
5482 view(s)

Subscribe

All our premium content and latest tech news delivered straight to your inbox

This field is for validation purposes and should be left unchanged.