阅读页面和iframe内容 [英] Read page and the iframes content

查看:335
本文介绍了阅读页面和iframe内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个可以读取页面内容的脚本,例如输入框,标签,iframe,复选框和提供他们的ID。如果任何iframe在任何地方读取内容,无论其来源....任何人有想法或代码请分享.. ...谢谢

I want a script which can read the page content like input box , label , iframes , checkbox and give their id .If any iframes reads it content too wherever its sourced .... Anyone have idea or code please share .....Thanks

推荐答案

您可以使用jquery列出页面上的所有控件。但是,鉴于您编写了页面,为什么需要在网站中执行此操作? iframe是一个单独的页面,我不确定你是否可以从另一个页面访问它。
You can use jquery to list all the controls on your page. But, given that you wrote the page, why do you need to do that within a website ? An iframe is a seperate page, I am not sure if you can access it at all from another page.


这篇关于阅读页面和iframe内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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