Javascript 警报

编程入门 行业动态 更新时间:2024-10-10 15:21:01
本文介绍了Javascript 警报 - 删除“位于 ??? 的页面"说"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个表格,我正在使用 Javascript 来验证表格,所以如果您将一个字段留空,它会提示请填写您的姓名".

I have a form and I am using Javascript to validate the form so if you leave a field blank it will alert "Please fill in your Name".

如果我直接访问链接,它会完美运行.但这有点像小部件,所以我使用 iFrame 将其嵌入到其他站点中.当我嵌入它时,单击提交并显示一个空白字段:www.example 上的页面 说:请填写你的名字

If I go to the link directly, it works perfectly. But this is kind of like a Widget so I am using an iFrame to embed it into other sites. When I embed it, and click Submit with an empty field it says: The page at www.example says: Please fill in your name

有没有办法摆脱它?

推荐答案

不,没有.这是一种反网络钓鱼功能.

No, there isn't. It is an anti-phishing feature.

如果你想要一个没有它的对话框,那么你必须使用页面中的 HTML 元素来伪造它.

If you want a dialog without it, then you have to fake it using HTML elements in your page.

更多推荐

Javascript 警报

本文发布于:2023-11-27 21:44:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639704.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   Javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!