x
 
<!DOCTYPE html>
<html>
<body>
<p>单击该按钮可创建一个带有嵌入式视频文件的 OBJECT 元素。</p>
<button onclick="myFunction()">试一试</button>
<br><br>
<script>
function myFunction() {
  var x = document.createElement("OBJECT");
  x.setAttribute("data", "/i/video/shanghai.mp4");
  x.setAttribute("width", "641");
  x.setAttribute("height", "360");
  document.body.appendChild(x);
}
</script>
</body>
</html>