在另一个html页面iframe中打开表单操作

在另一个html页面iframe中打开表单操作,html,forms,iframe,Html,Forms,Iframe,我试图在另一个html页面中的iframe中打开表单操作url。 我在一个iframe中成功打开了它,它与以下代码位于同一页: <form class="form" action="myConnexionURL" target="iframe-myAccount" method="post"> <input type="text" id="login" name="login" placeholder="ID"> <input type="pas

我试图在另一个html页面中的iframe中打开表单操作url。 我在一个iframe中成功打开了它,它与以下代码位于同一页:

<form class="form" action="myConnexionURL" target="iframe-myAccount" method="post">
     <input type="text" id="login" name="login" placeholder="ID">
     <input type="password" id="pass" name="pass" placeholder="PSW">
     <input type="submit" value="Connexion">
</form>

<iframe src="" name="iframe-myAccount"></frame> 


因此,我的问题很简单:如何在另一个
html
页面中的iframe中打开
表单
操作url?

据我所知,无法直接访问该iframe。我认为您必须将数据传递给父级,然后让它调整嵌入iFrame的URL。我可能会通过服务器端脚本实现这一点,但您也可以通过JavaScript实现。

您想获取表单的
action
属性的URL,然后将其显示在iframe中吗?只是URL?与请求无关?