每次在页面加载后我想要更改iframe src属性 [英] Changing Iframe src attribute each time when i want after page load
本文介绍了每次在页面加载后我想要更改iframe src属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友们
< iframe id = Iframeleft align = right height = 388 < span class =code-attribute> scrolling = auto src = www.codeproject.com width = 100% 样式 = height: 524px;宽度:160%; >
< / iframe >
我可以在页面加载后更改src属性
表示我希望每次在页面加载后我想要更改此src属性。
任何示例或链接的解决方案
谢谢
解决方案
< iframe id =frame1runat =serverwidth =1000height =500align =middlesrc =>< /
并在页面加载时使用
this .frame1.Attributes.Add( src,您的值跨度>);
Hi Friends
<iframe id="Iframeleft" align="right" height="388" scrolling="auto" src="www.codeproject.com" width="100%" style="height: 524px; width: 160%;" >
</iframe>
Can i change the src attribute after the page load
means i want to change this src attribute each time whenever i want ,after page load.
solution with Any Example or link
Thanks
解决方案
< iframe id="frame1" runat = "server" width = "1000" height = "500" align= "middle" src= "" ></
and use on page load
this.frame1.Attributes.Add("src",your value);
这篇关于每次在页面加载后我想要更改iframe src属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文