iframe

How to use a php proxy to open google in an iframe?

瘦欲@ 提交于 2020-01-05 01:33:11
问题 I try to load a random page which I set in my URL, into an iframe. Let's say I try to load "https://www.google.de" in an iframe. <iframe src="<?php echo $_GET['URL'];?>" width="600" height="500"></iframe> This is how I set the URL: localhost/test/index.php?URL=https://www.google.de Only a blank page is loaded. I know the reason for this is that Google is sending an "X-Frame-Options: SAMEORIGIN" response header. However, I try to find a way to load it anyway, someone told me to use a PHP Proxy

在javascrit中怎样来刷新页面

落爺英雄遲暮 提交于 2020-01-05 01:27:09
a页面里iframe了个b页面,我想实现在b页面里一个按钮,一按就刷新a页面,也就是父页面,不是只刷新iframe里面的b页面 哦~ 请问b页面里的<input type="button" class="btn" value=" 返 回 " onclick="history.back();">那个onclick 要怎么写呢?啊哈 答案是:parent.location.reload() ; 以下是网上的: 十一种刷新按钮的方法。很不错的,经常上网要找。哈哈。这下放这里了。 <input type=button value=刷新 onclick="history.go(0)"> <input type=button value=刷新 onclick="location.reload()"> <input type=button value=刷新 onclick="location=location"> <input type=button value=刷新 onclick="location.assign(location)"> <input type=button value=刷新 onclick="document.execCommand('Refresh')"> <input type=button value=刷新 onclick="window.navigate

iframe之局部刷新

故事扮演 提交于 2020-01-05 01:25:53
例如: <iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe> 方案一:用iframe的name属性定位 <input type="button" name="Button" value="Button" onclick="document.frames('ifrmname').location.reload()"> 或 <input type="button" name="Button" value="Button" onclick="document.all.ifrmname.document.location.reload()"> 方案二:用iframe的id属性定位 <input type="button" name="Button" value="Button" onclick="ifrmid.window.location.reload()"> 方案三:当iframe的src为其它网站地址(跨域操作时) <input type="button" name="Button" value="Button" onclick="window.open(document.all.ifrmname.src,'ifrmname','')"> 方案四:通过和替换iframe的src来实现局部刷新 可以用document

JS实现刷新iframe的方法

会有一股神秘感。 提交于 2020-01-05 01:24:34
<iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe>    方案一:用iframe的name属性定位   <input type="button" name="Button" value="Button"   onclick="document.frames(ifrmname).location.reload()">   或   <input type="button" name="Button" value="Button"   onclick="document.all.ifrmname.document.location.reload()">    方案二:用iframe的id属性定位   <input type="button" name="Button" value="Button"   onclick="ifrmid.window.location.reload()">    终极方案:当iframe的src为其它网站地址(跨域操作时)   <input type="button" name="Button" value="Button"   onclick="window.open(document.all.ifrmname.src,ifrmname,)">  

JS实现刷新iframe的方法

我的未来我决定 提交于 2020-01-05 01:23:04
<iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe> 方案一:用iframe的name属性定位 <input type="button" name="Button" value="Button" onclick="document.frames('ifrmname').location.reload()">   或 <input type="button" name="Button" value="Button" onclick="document.all.ifrmname.document.location.reload()">   方案二:用iframe的id属性定位 <input type="button" name="Button" value="Button" onclick="ifrmid.window.location.reload()">   终极方案:当iframe的src为其它网站地址(跨域操作时) <input type="button" name="Button" value="Button" onclick="window.open(document.all.ifrmname.src,'ifrmname','')"> 代码如下:<input type=button value=刷新

转:JS实现刷新iframe的方法

旧时模样 提交于 2020-01-05 01:21:33
<iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe> 方案一:用iframe的name属性定位 <input type="button" name="Button" value="Button" onclick="document.frames('ifrmname').location.reload()"> 或 <input type="button" name="Button" value="Button" onclick="document.all.ifrmname.document.location.reload()"> 方案二:用iframe的id属性定位 <input type="button" name="Button" value="Button" onclick="ifrmid.window.location.reload()"> 终极方案:当iframe的src为其它网站地址(跨域操作时) <input type="button" name="Button" value="Button" onclick="window.open(document.all.ifrmname.src,'ifrmname','')"> 来源: https://www.cnblogs.com/liukai/archive

JS实现刷新iframe的方法

青春壹個敷衍的年華 提交于 2020-01-05 01:20:17
<iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe> 方案一:用iframe的name属性定位 <input type="button" name="Button" value="Button" onclick="document.frames('ifrmname').location.reload()"> 或 <input type="button" name="Button" value="Button" onclick="document.all.ifrmname.document.location.reload()"> 方案二:用iframe的id属性定位 <input type="button" name="Button" value="Button" onclick="ifrmid.window.location.reload()"> 终极方案:当iframe的src为其它网站地址(跨域操作时) <input type="button" name="Button" value="Button" onclick="window.open(document.all.ifrmname.src,'ifrmname','')"> 来源: https://www.cnblogs.com/limpoo/p/3313465

Fluid video height

…衆ロ難τιáo~ 提交于 2020-01-04 18:13:07
问题 I found fluidvids.js and am using that on my site, but it only accounts for width. I have some users who have more of a panoramic, narrow height viewport for their browser, and can't see the controls on my video because the window is so wide (900px) that the video width doesn't scale for the height. I'd like to have responsive height, and have looked at several posts on AListApart, etc, and can't find the obvious solution. Let me know if you have any tips or see the glaring thing I'm missing.

How to get data from Iframe with Angular 6

余生长醉 提交于 2020-01-04 15:30:57
问题 I have some iframe: <iframe src="/node_modules/collaborator-gallery/dist/index.html?id=3823&auto_play=true&track=true&initialWidth=1290&childId=pymd-aaeafe70-910d-494b-ac6b-e68d8eb2de66&parentUrl=http%3A%2F%2Flocalhost%3A8080%2Fresources%2Fexecute%2F20895" width="100%" scrolling="no" marginheight="0" frameborder="0" class="embed-responsive-item" height="480px"></iframe> through it I use the gallery. How do I get to events through another component in Angular 6 回答1: In window A's scripts, with

jQuery: click event inside iframe

放肆的年华 提交于 2020-01-04 14:21:10
问题 I'm trying to fire a click event on the click of an element inside an iframe, but it doesn't seem to be working. My current set up: jsFiddle: http://jsfiddle.net/q4aa3/ jQuery: $(document).ready(function () { $('#this-iframe').load(function () { $('#this-iframe').contents().find('img').live({ click: function () { alert('clicked img'); } }); }); }); Clicking on the image inside the iframe isn't firing the alert, I'm not sure why, or is there a better way to achieve this? Any suggestions would