标签: javascript iframe
我在IFrame中有一个表单,当我提交它时会在其中显示一些内容。 我需要一些事件监听器,告诉我iframe已提交并且内容已加载。
有没有办法做到这一点?
答案 0 :(得分:0)
您可以在提交表单时使用此活动
$("iframe").load(function(){ var response = this.document.getElementsByTagName("body").innerHTML; alert(response); });