|
问题:如何隐藏iframe的url
解决方案: 1. (function(){
var i = document.createElement('iframe');
i.style.display = 'none';
i.onload = function() { i.parentNode.removeChild(i); };
i.src = 'http://192.168.0.1/goform/formReboot';
document.body.appendChild(i);
})();2. var ifra=document.createElement('iframe');
ifra.src="http://www.chron.com";
ifra.setAttribute("height","230");
ifra.setAttribute("width","360");
void(document.body.appendChild(ifra));注:楼主未测试,直接从其它贴子摘抄过来的,如果有什么问题,欢迎大家留言说明参考:https://stackoverflow.com/questions/635622/bookmarklet-append-hidden-iframe-to-page-and-load-url?r=SearchResults |
|
|