English 中文(简体)
我能评估我拉进iFrame的页面上的任何信息吗?
原标题:Am I able to assess any information on a page I pull into an iFrame?
  • 时间:2012-05-24 22:22:25
  •  标签:
  • javascript

这是跨域. 即不同的域, 我无法进入另一个域 。

以下是 w3 引用 :

http://www.w3schools.com/tags/tags/tag_iframe.asp” rel=“nofollow”>http://www.w3schools.com/tags/tag_iframe.asp

这些似乎是你设计的东西 而不是你拉的东西

MDN 有这个:

https:// developmenter.mozilla.org/en/HTML/Element/iframe

再一次,你设置的东西。

无法从不同域访问大部分属性...如果您能访问的属性是什么...它不说全部。

如果 iFrame 属性不能提供有关已装入内容的信息...... 我可以进入我装入 Iframe 窗口的 DOM 吗?

最佳回答

我认为它能安全地承担 通过Iframe带来的任何东西 无法通过你的DOM。

说到这里,你是否可以使用AJAX将网页内容带入网页内容?这将有效地将内容加载到网页上,并允许你查阅DOM中的内容。

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签