父页面向iframe子页面传递参数

父页面:

<iframe  src="video.html" width="100%" height="400"  name="vedioiframe" style="border: none; overflow:hidden" scrolling="no" link="http://www.baidu.com/"></iframe>

子页面:

var videoUrl = parent.window.document.getElementsByName("vedioiframe")[0].getAttribute('link');
原文地址:https://www.cnblogs.com/liuzhibin/p/5386151.html