I am learning Javascript during my free time. As a part of a small project, I wanted to get users Youtube video ID, width and height using html form and then finally use those to write it in the below format.
For example, if user inputs width = 640, height = 360 and video id = IboGovrkfjE, the final output would be as below:
<iframe width="INPUT_WIDTH" height="INPUT_HEIGHT" src="http://www.youtube.com/embed/INPUT_VIDEOID?rel=0" frameborder="0" allowfullscreen></iframe>
When I used document.write as below it is not processed since 2 double quotes come together.
document.write "<iframe width="";
So, I used HTML ASCII " for double quotes
document.write "<iframe width="";
Now the problem is the ;
The ASCII for ; is ;
I am totally at a loss, don't know how to proceed, have been working on this for a week.
Sorry for not to the point question and any help or alternative in this regard would be greatly appreciated.
Thanks!