document.addEventListener("DOMContentLoaded", function() { var videoPlayerDiv = document.createElement('div'); videoPlayerDiv.id = 'video'; videoPlayerDiv.style.width = '320px'; videoPlayerDiv.style.height = '480px'; document.body.appendChild(videoPlayerDiv); var script = document.createElement('script'); script.src = ''; document.body.appendChild(script); });