x
 
<!DOCTYPE html>
<html>
<body>
<h3>演示如何访问 Embed 元素</h3>
<embed id="myEmbed" src="/i/helloworld.swf">
<p>点击按钮来获得内嵌 flash 文件的 URL。</p>
<p id="demo"></p>
<button onclick="myFunction()">试一下</button>
<script>
function myFunction()
{
var x = document.getElementById("myEmbed").src;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>