如何在没有JS的页面加载或提交按钮的情况下发布表格数据?

发布于 2025-02-13 15:21:53 字数 238 浏览 0 评论 0原文

我有一个特定的用例,其中我的页面位于iframe内的另一个域上。

我必须在iframe内进行http post对预定义的URL(跨域,不必担心CORS),以便主机可以关闭iframe

我可以免费使用JS Hassle做到这一点。

在没有JS的情况下,我该如何实现(如果禁用JS),而无需单击提交按钮。

I have a specific use case where my page is on another domain inside an iframe.

I have to do a HTTP POST inside the iframe to a predefined URL(cross domain, Don't worry about CORS) so that the host can close the iframe

I could do this with JS hassle free.

How can i achieve this without JS (In case the JS is disabled) and without a submit button click.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文