需要来自JavaScript大师的帮助。
我有一个http://www.google.com/finance/converter嵌入在IFrame中的页面。 每次Google财经页面加载时,我都可以收到活动通知。 现在问题是这个页面的内容不能通过JavaScript访问。 这似乎是一些安全问题(通知萤火虫)。 是否有任何解决方法,以便我可以访问使用JavaScript的值(结果和选择框)?
I am using .. function iframe_loaded(){ $("#frame").contents().find("select"); // returns 0 elements }Need some help from javascript gurus.
I have one page where http://www.google.com/finance/converter is embedded inside IFrame. I am able to get the event notification whenever Google Finance page loads. Now problem is this that contents of this page is not accessible through javascript. It seems to be some security issue (firebug notified). Is there any workaround so that I can access values (result and select boxes) using javascript?
I am using .. function iframe_loaded(){ $("#frame").contents().find("select"); // returns 0 elements }最满意答案
不,没有。 想象一下这个的安全含义。 黑客网站包含您的银行网站的iframe,并在输入字段中注册一个键盘事件处理程序,您可以在其中输入信用卡号码,以获取您在该处输入的所有内容。
No there isn't. Imagine the security implications of this. A hacker site includes an iframe of your bank site and registers a keyup event handler for the input field where you type your credit card number capturing everything you type there.
更多推荐
发布评论