Javascript Alert - Removing quot;The page at ??? Saysquot;(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 将其嵌入到其他站点中.当我嵌入它时,单击提交并显示一个空白字段:http://www.example 上的页面.com 说:请填写你的名字
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 http://www.example.com 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 警报 - 删除“位于 ??? 的页面"说"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Javascript 警报 - 删除“位于 ??? 的页面"说"


基础教程推荐
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01