【问题标题】:Sending variable data in iframe website and submit it在 iframe 网站中发送可变数据并提交
【发布时间】:2021-04-15 12:40:24
【问题描述】:

是否可以将数据发送到 iframe 网站表单并提交表单?就像我想跟踪货件编号,这是代码

<?php
$tracking = 'LE783579177';
?>

<iframe src="http://leopardscourier.com/pk/tracking/" width="100%" height="100%" ></iframe>

我想在 iframe 中打开跟踪表单并传递跟踪编号并提交。有可能吗?

【问题讨论】:

    标签: javascript php html iframe


    【解决方案1】:

    您可以使用postMessage()处理这种情况-https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-27
      • 1970-01-01
      • 2016-04-05
      • 1970-01-01
      • 2023-01-13
      相关资源
      最近更新 更多