Embedded html with script - is it a bug?

Sorry, I have a similar question but is not duplicated.

Hi I have the next html:

    <//title>Climatempo - Selo de Videos: SUL<///title>
    <//body bgcolor="black" style="padding:0!important;margin:0!important" >
    <//iframe id="myframe" width="420" height="315" src="https://www.youtube.com/embed/YPlee8K0ViE" frameborder="0" ><///iframe>

and the next script:

<////script type=“text/javascript”>
function EmbedInit()
// Init will be called when this page is loaded in the client.
//select the first iframe that has a src that links to youtube
var firstIframe = document.getElementsById(“myframe”);

//get the current source
var src = firstIframe.src;

//update the src with "autoplay=1"
var newSrc = src+’?autoplay=1’;

//change iframe’s src
firstIframe.src = newSrc;

It seems the script is never called, because my video stays allways stopped.

Am I doing something wrong or is it a bug?


Sorry, my error. No bug.

OK, glad you have it solved.

For future reference you can post HTML with back ticks ` (three of them to start your HTML, and then 3 to finish).

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.