xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

window.open() & iframe

window.open() & iframe

https://www.w3schools.com/jsref/met_win_open.asp


window.open(URL, name, specs, replace);

https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open3


<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
  var myWindow = window.open("", "MsgWindow", "width=200,height=100");
  myWindow.document.write("<p>This is 'MsgWindow'. I am 200px wide and 100px tall!</p>");
}
</script>


https://github.com/xyzdata/RAIO/issues/218

https://stackoverflow.com/questions/5660700/javascript-to-open-popup-window-and-disable-parent-window


var popupWindow=null;

function popup()
{
    popupWindow = window.open('child_page.html','name','width=200, height=200');
}

function parent_disable() {
    if(popupWindow && !popupWindow.closed)
    popupWindow.focus();
}

https://stackoverflow.com/questions/14104801/open-window-in-iframe

https://stackoverflow.com/questions/19759880/open-iframe-in-a-new-window

\n

ta;
<textarea data-dom=​"textarea" width=​"400" height=​"300">​</textarea>​
ta.innerText;
""
ta.innerHTML;
""
ta.value;
"https://photo.sina.cn/album_1_88610_353390.htm
https://photo.sina.cn/album_1_88610_353390.htm
https://photo.sina.cn/album_1_88610_353390.htm"
ta.value;
"http
http
http"
ta.value.includes(` `);
false
ta.value.length;
14
ta.value.includes(`\n`);
true
arr = ta.value.split(`\n`);
(3) ["http", "http", "http"]

forbidden iframe


http://www.whb.cn/zhuzhan/cs/20190128/238820.html
http://www.xjtj.gov.cn/tjfx/201901/t20190108_562446.html
http://med.sina.com/article_detail_103_2_59978.html
http://www.chinaz.com/news/mt/2019/0128/987390.shtml
http://www.canyin168.com/Article/jyaq/77176.html
http://www.nxjjjc.gov.cn/yw/201803/t20180301_4465305.html
http://www.shjcw.gov.cn/2015jjw/n2230/n2236/u1ai76732.html
http://bigdata.idcquan.com/news/157324.shtml
http://blockchain.idcquan.com/156300.shtml
http://dc.idcquan.com/xmzb/156311.shtml
http://cloud.idcquan.com/yjs/157991.shtml
http://news.idcquan.com/gjzx/158129.shtml
http://www.ccs.org.cn/ccswz/font/fontAction!article.do?articleId=8a818208685540b901689238410a4a23
http://www.cnnp.com.cn/art/2018/12/28/art_32_6097.html
http://www.chemm.cn/News/news-73639.html
http://finance.ce.cn/rolling/201901/28/t20190128_31372451.shtml
http://www.ce.cn/macro/more/201901/28/t20190128_31370083.shtml

iframe & HTTPS & CORS

https://iframe.xgqfrms.xyz/eapp/index.html#blog.sina.cn

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2019-03-01 15:32  xgqfrms  阅读(982)  评论(5编辑  收藏  举报