简体   繁体   中英

iFrame submit form, event listener

I have a form inside an IFrame, and when I'm submitting it some content displays in it. I need some event listener, which tells me that the iframe was submitted and the content loaded.

Is there any way to do this?

You can use this event while submitting form

$("iframe").load(function(){
    var response = this.document.getElementsByTagName("body").innerHTML;
    alert(response);
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM