如何使用javascript为iframe中存在的文本框控件赋值 [英] How to assign value to textbox control present in iframe using javascript

查看:303
本文介绍了如何使用javascript为iframe中存在的文本框控件赋值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何使用javascript for IE为iframe中的文本框控件赋值



我试过



window.frames [<%= ifrUploadDocs.ClientId%>]。document.getElementById(<%= hdBatchId.ClientId% >);



但不工作。



请帮我解决这个问题。

解决方案

有一个很好的提示,检查一下,可能会有所帮助。



http:// www.codeproject.com/Tips/656521/Get-or-Set-value-to-Controls-inside-iFrame-from-Pa

Hi,

How to assign value to textbox control present in iframe using javascript for IE

I tried

window.frames["<%=ifrUploadDocs.ClientId %>"].document.getElementById("<%=hdBatchId.ClientId %>");

but not working.

Please help me in solving this.

解决方案

there is a good tip on this , check this , might be helpful.

http://www.codeproject.com/Tips/656521/Get-or-Set-value-to-Controls-inside-iFrame-from-Pa


这篇关于如何使用javascript为iframe中存在的文本框控件赋值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆