国产老熟女高潮毛片A片仙踪林,欧美喂奶吃大乳,狠狠爱无码一区二区三区,女神的私人医生动漫免费阅读

新聞建站cms系統(tǒng)、政府cms系統(tǒng)定制開發(fā)

廣州網(wǎng)站建設(shè)公司-閱速公司

asp.net新聞發(fā)布系統(tǒng)、報(bào)紙數(shù)字報(bào)系統(tǒng)方案
/
http://www.tjsimaide.com/
廣州網(wǎng)站建設(shè)公司
您當(dāng)前位置:首頁>網(wǎng)站技術(shù)

網(wǎng)站技術(shù)

網(wǎng)頁iframe中在Chrome新版本中parent.document.write將不會執(zhí)行

發(fā)布時(shí)間:2021/3/23 18:17:55  作者:Admin  閱讀:633  

廣告:

var ifr=window.parent.window.frames['ifr'];

ifr.document.open();

// ifr.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n'); //會提示沒有權(quán)限

ifr.document.write('<html>\n');

ifr.document.write('<head>\n');

ifr.document.write('<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />\n');

ifr.document.write('<style>*{margin:0px;padding:0px;line-height:20px;}</style>\n');

ifr.document.write('<script>function check(){if (document.form1.file2.value==""){alert("上傳文件不能為空");return false;}}<\/script>\n');

ifr.document.write('</head>\n');

ifr.document.write('<body style="padding-top:3px;">\n');

ifr.document.write('<form id="form1" name="form1" method="post" enctype="multipart/form-data" onsubmit="return check();" action="'+editorpath+'uploadinc/Up.aspx">\n');

ifr.document.write('<input type="file" name="file2" id="file2" value="" style="width:230px;line-height:21px;height:21px;vertical-align:middle" /><input style="padding-left:3px;margin-left:1px;padding-right:3px;height:21px;line-height:21px;width:73px;vertical-align:middle" type="submit" name="Submit" value="開始上傳" /></form>');

ifr.document.write('</body>\n');

ifr.document.write('</html>');

ifr.document.close();

針對以上的測試數(shù)據(jù),Chrome 從 55版本開始,chrome 瀏覽器對用戶使用的 document.write() 進(jìn)行干預(yù),如果符合以下所有的情況,頁面 <script> 標(biāo)簽中的 document.write() 將不會被執(zhí)行

1 用戶處于緩慢的連接狀態(tài),特別是用戶在 2G 時(shí)。(將來可能會延伸到慢速連接的其他用戶,例如慢速 3G 或慢速 WiFi);

2 document.write() 在一個(gè)頂級的文件中,不適用于 iframe 中的 document.write 腳本,因?yàn)樗鼈儾粫柚怪黜撁娴某尸F(xiàn);

3 document.write() 中加載的腳本是會阻斷解析的,如果腳本中有 async 或者是 defer 屬性,那么它們還是會被解析執(zhí)行;

4 document.write() 中加載的腳本和頁面地址不是同個(gè)主域的,換句話說,chrome 瀏覽器不會阻止 script 標(biāo)簽符合 eTLD+1 規(guī)則的加載;

5 document.write() 中加載的腳本尚未在瀏覽器 HTTP 緩存中。緩存中的腳本不會導(dǎo)致網(wǎng)絡(luò)延遲,并且仍然會執(zhí)行。

廣告:

相關(guān)文章
iframe
document.write
cms新聞系統(tǒng)購買咨詢
掃描關(guān)注 廣州閱速軟件科技有限公司
掃描關(guān)注 廣州閱速科技
主站蜘蛛池模板: 西安市| 平武县| 虹口区| 东乌珠穆沁旗| 蕉岭县| 中山市| 尉氏县| 周宁县| 中阳县| 简阳市| 辽中县| 武隆县| 嵊泗县| 乌拉特中旗| 青岛市| 桂平市| 西盟| 渭南市| 扬中市| 册亨县| 衡山县| 江油市| 云阳县| 彩票| 万年县| 吉木乃县| 高平市| 巴林左旗| 祁东县| 大埔县| 郑州市| 齐河县| 福建省| 洪洞县| 普兰店市| 长泰县| 丰县| 原平市| 武宣县| 曲沃县| 武宁县|