console
var script = document.creatElement('script');
script.src = 'http://xxx.xxx.xxx?callback=handleFun'
document.body.appendChild(script);
handleFun (data) {
}
http:
<iframe id="ifr" src="http://ex.com/b.html" onload="test()"></iframe>
document.domain = 'ex.com'
var ifr = document.getElementById('ifr');
test () {
var obj = ifr.contentWindow;
}
http:
document.domain = 'ex.com'
http:
<iframe id="ifr" src="http://ex.com/b.html" style="dispaly:none;" onload="test()"></iframe>
var ifr = document.getElementById('ifr');
test () {
var data = ifr.contentWindow.name;
ifr.src = '##';
}
http:
window.name ="我给a的我这边的数据"
<body></body>