2014-02-15 58 views

回答

0

how to trigger the submit button when the inner Iframe source change?

,如果它属于不同的领域,你不能访问iframe中的内容。

I use a third party iframe src

所以defenitly不从w3school

Note: Because of security reasons, the contents of a document can be accessed from another document only if the two documents are located in the same domain.

+0

谢谢,但如果我创建的iframe,我不能使用一个函数,检查我的iframe的src是否已经改变? –

+0

检查此问题http://stackoverflow.com/questions/4977930/is-it-possible-to-tell-if-the-src-of-an-iframe-has-changed和http://stackoverflow.com/questions/2235994 /如何确定,如果该位置的iframe已更改 – manish

+0

在第二个链接检查@丹尼尔Vassallo答案他说同样的事情,我告诉..试试这也是http:// stackoverflow.com/questions/9372391/alert-when-iframe-url-changed – manish

0

它的其他领域

我也改变了重定向页面,并添加它

<body onload="parent.parent.send()"> 

在th我添加:

<script> 
function send() 
{ 
document.getElementById("gform_1").submit(); 
} 
</script> 

它解决了我的问题。