How do I submit an html form inside an iframe without changing the outer page?

后端 未结 2 1013
遇见更好的自我
遇见更好的自我 2020-12-31 04:03

I\'m editing some existing html where the javascript loads a another page inside an iframe. In the page is an html form. When I hit submit, I\'d like for the outer page to s

相关标签:
2条回答
  • 2020-12-31 04:09

    Target the form to the iframe:

    <iframe name="foo"></iframe>
    
    <form target="foo"></form>
    
    0 讨论(0)
  • 2020-12-31 04:25

    Try using the target attribute of the form tag. You can specify the frame.

    0 讨论(0)
提交回复
热议问题