Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8792423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:58:37+00:00 2026-06-13T22:58:37+00:00

I have an iframe that contains two fields and a form that contains multiple

  • 0

I have an iframe that contains two fields and a form that contains multiple fields. What I want to do is click ‘submit’ on iframe when the user clicks submit on the non iframe form so that first form gets submitted and then the second form is submitted. Is this possible? Thanks

--- IFRAME ---
[Input 1]
[Input 2]
[Hidden Submit]
--- IFRAME ---

[Input 3]
[Input 4]
[Submit] <-- user is gonna click this, then iframe form and this form gets submitted
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:58:38+00:00Added an answer on June 13, 2026 at 10:58 pm

    yes, that’s possible.

    <iframe name="myframe" onload="submitForm()"></frame>
    
    <form action="" method="post" onsubmit="return subIframe()" id="form1">
    <input type="text" name="input1" value=""/>
    <input type="text" name="input2" value=""/>
    <input type="submit" value="submit">
    </form>
    
    <script>
    var flag=1;
    /*submit the iframe form fist*/
    function subIframe(){
        /*submit the form in iframe here*/
        if(flat==1){
           myframe.document.getElementById("myform").submit();
           flat=0;
           return false;
        }else{
           return true;
        }
    
    }
    
    
    /*after the iframe form been submited, submit the form in the current page*/
    function submitForm(){
     document.getElementById("form1").submit();
    }
    </script>                                                  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have an IFRAME that contains a given page - I want to
I have a page that contains an iframe element. I want to have some
I have a widget that contains an iframe. The user can configure the url
So I have an iFrame that contains a form. I would like for the
I have an iframe that contains a report, which also allows a user to
I have a page in a site that contains an iframe with a form
I have an iframe that contains some content from a site. I want the
I have a form which contains: <button class="submit">Submit</button> and jQuery code: $(".submit").click(function(e){ var evt
I have a page with an iframe that contains a html page. I want
I have an iframe which lets say that it contains the following text: <h1>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.