草庐IT

iframe-proxy

全部标签

javascript - 如何检测当前的iframe url?

我写了一个html代码,用另一个网站初始化我的iframe。例如我的域名是:www.mydomain.com/Index.html这里有一个每当iframe获得新的时,我想检测完整的新srcurl。iframe文本包含指向初始化页面中其他页面的链接。完成它是否可能且合法?谢谢。任何帮助表示赞赏。我猜它涉及跨源问题,但是否有解决此问题的方法?更新我试图通过得到答案document.getElementById("myIframeId").src在帧加载事件中。但它一直显示初始化它的src。它没有显示更新的src。document.getElementById("myIframeId").

javascript - 为什么我不能使用 iframe 对象和 jQuery 遍历这个元素?

我正在尝试使用iframe对象和jQuery访问特定元素(可能与此更相似),但它不起作用。iframeWindow对象不为空但下一条语句似乎不起作用。我看到了类似this的东西在这个答案上,但它不起作用。我做错了什么吗?这是我的代码:radio.PHP$(document).ready(function(){setTimeout(function(){variframe=document.getElementById("iframe");variframeWindow=iframe.contentWindow;vartext=iframeWindow.$("div:nth-child(

javascript - 为什么我不能使用 iframe 对象和 jQuery 遍历这个元素?

我正在尝试使用iframe对象和jQuery访问特定元素(可能与此更相似),但它不起作用。iframeWindow对象不为空但下一条语句似乎不起作用。我看到了类似this的东西在这个答案上,但它不起作用。我做错了什么吗?这是我的代码:radio.PHP$(document).ready(function(){setTimeout(function(){variframe=document.getElementById("iframe");variframeWindow=iframe.contentWindow;vartext=iframeWindow.$("div:nth-child(

html - iOS 手机 : scrolling in iFrame within scroll-able parent

我在移动iOSSafari中遇到一个问题,当在iFrame本身内拖动时,无法在包含iFrame的div中滚动:#outside{height:400px;width:200px;background:blue;overflow:scroll;}.space{height:200px;width:200px;background:red;}iframe{height:1000px;width:200px;background-color:green;}ThegreensectionistheiFrame....ScrollingonthegreensectioniniOSmobileis

html - iOS 手机 : scrolling in iFrame within scroll-able parent

我在移动iOSSafari中遇到一个问题,当在iFrame本身内拖动时,无法在包含iFrame的div中滚动:#outside{height:400px;width:200px;background:blue;overflow:scroll;}.space{height:200px;width:200px;background:red;}iframe{height:1000px;width:200px;background-color:green;}ThegreensectionistheiFrame....ScrollingonthegreensectioniniOSmobileis

执行vivado报错 start_gui MoTTY X11 proxy: Unsupported authorisation protocol

执行vivado报错start_guiMoTTYX11proxy:UnsupportedauthorisationprotocolExceptioninthread"main"java.awt.AWTError:Can'tconnecttoX11windowserverusing'localhost:12.0'asthevalueoftheDISPLAYvariable.atjava.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(NativeMethod)atjava.desktop/sun.awt.X11GraphicsEnvironm

javascript - `base` 标记导致 iframe 在 Internet Explorer 中作为新窗口打开

我对basetag有疑问仅影响InternetExplorer(版本8、9和10)。以下代码用于在iframe中打开动态内容,并在Chrome和Firefox中正常运行。它在InternetExplorer中也能正常运行,但只是没有标签。包含此标记会导致iframe作为新窗口打开(这是有道理的,但这不是我想要做的。functionload_iframe(name,height,width){vardiv=document.getElementById(name);varifrm=document.createElement('iframe');ifrm.id='iframe_'+nam

javascript - `base` 标记导致 iframe 在 Internet Explorer 中作为新窗口打开

我对basetag有疑问仅影响InternetExplorer(版本8、9和10)。以下代码用于在iframe中打开动态内容,并在Chrome和Firefox中正常运行。它在InternetExplorer中也能正常运行,但只是没有标签。包含此标记会导致iframe作为新窗口打开(这是有道理的,但这不是我想要做的。functionload_iframe(name,height,width){vardiv=document.getElementById(name);varifrm=document.createElement('iframe');ifrm.id='iframe_'+nam

javascript - 获取给定 URL 的 iframe DOM 元素

我正在使用w3c资源计时API。window.performance.getEntriesByType("资源");这给出了包括iframe在内的资源列表。但是,要获取嵌入式iframe的资源,我需要获取iframe的性能对象,这需要我引用其DOM节点/元素。varmyiframe2=$("#myiframe2");varmyiframeContentWindow=myiframe2[0].contentWindow;variframeContentPerf=myiframeContentWindow.performance;问题是,如果我只知道iframe的URL,那么如何获取ifr

javascript - 获取给定 URL 的 iframe DOM 元素

我正在使用w3c资源计时API。window.performance.getEntriesByType("资源");这给出了包括iframe在内的资源列表。但是,要获取嵌入式iframe的资源,我需要获取iframe的性能对象,这需要我引用其DOM节点/元素。varmyiframe2=$("#myiframe2");varmyiframeContentWindow=myiframe2[0].contentWindow;variframeContentPerf=myiframeContentWindow.performance;问题是,如果我只知道iframe的URL,那么如何获取ifr