使用Prototype $方法访问IFrame元素的方法是什么 [英] What is the way to access IFrame's element using Prototype $ method

查看:157
本文介绍了使用Prototype $方法访问IFrame元素的方法是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用原型js库我可以使用 $(elementID)来访问元素。我可以通过

Using prototype js library I can access elements by using $(elementID). I can access the element in an Iframe by

$('iframeID').contentWindow.document.getElementById('ID of element inside Iframe'). 

我想使用相同的美元方法让我的Iframe访问Iframe中的元素。有什么办法吗?

I would like to use the same dollar method for my Iframe to access elements in Iframe. Is there any way?

推荐答案

如果您想知道这种方法,可以访问该链接(搜索后我得到了链接)

If you are eager to know the method, you can visit the link (after searching I got the link)

http:// www .ruby-forum.com / topic / 146705

和演示哟可以访问这里

http://sandbox.equawire.com/stackoverflow/DollarIFrame3.aspx

谢谢。

这篇关于使用Prototype $方法访问IFrame元素的方法是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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