Hi @kirupa,
Thanks a lot for your help.
Yes, I know the CSS solution, which is really cool.
But in this particular case, I wanted a working solution with JavaScript.
Meanwhile I managed to find a solution with JS, which is here: Responsive Youtube videos
I will appreciate any suggestions to improve that JS code.
Thanks again.