This code is not done by me. I downloaded the code from W3Schools for Youtube video purpose. You can download the code. This is for demo purpose.