救命!我怎么可能有一个iFrame负载!点击“搜索”后? [英] HELP! How may I have an iFrame load in itself! after 'search' click?
本文介绍了救命!我怎么可能有一个iFrame负载!点击“搜索”后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用租车的联盟计划给了我一个带有一些输入和搜索按钮的小部件(小部件是我网站上的iframe)
当有人按下'搜索'时打开会员网站的搜索结果,我希望结果显示在iframe本身而不更改窗口!
任何想法?或替代方案?
提前致谢!
Hi, I use an affiliate program for rental cars that gave me a widget with some inputs and a search button (the widget is an iframe on my website)
When someone presses 'search' it opens the affiliate's website with search results, I would like the results to appear in the iframe itself without changing window!
Any ideas? or alternatives?
Thanks in advance!
推荐答案
试试这个.. :)
如果你必须刷新iframe然后再给同一个src一个iframe
就像这样....,
html
try this.. :)
if you have to refresh iframe then give same src once again to iframe
like this....,
html
<iframe height="300px" width="500px" src="www.niravprabtani.blogspot.in">
</iframe>
<span onclick="RefreshIframe()">Refresh</span>
< br $> b $ b
Java脚本
Java script
function RefreshIframe()
{
document.getElementById("MyFrame").src = "www.niravprabtani.blogspot.in";
}
这篇关于救命!我怎么可能有一个iFrame负载!点击“搜索”后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文