iframe实现跨域通信

by lxjwlt

HTML

<p id="block"></p>

JavaScript

var URL = location.href;
document.getElementById('block').innerHTML = URL;