我有一个表格,我正在使用 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 警报
发布评论