[英]How to make a javascript alert NOT say the name of the page?
My webapp alert looks like this: 我的webapp警报如下所示:
InputCoordinates.html InputCoordinates.html
Latitude must be filled out. 必须填写纬度。
I would say this looks unprofessional and rough around the edges. 我会说这看起来不专业而且边缘粗糙。 Is there a way to stop the alert from displaying the pagename? 有没有办法阻止警报显示页面名称?
You can't manipulate that. 你不能操纵它。
Maybe you take a look at these bastards called modal popups, if youre able to use jQuery. 如果你能够使用jQuery,也许你看看这些被称为模态弹出窗口的混蛋。
There are non-jquery options, too, of course. 当然,也有非jquery选项。
I'd advise you not to use "alert". 我建议你不要使用“警报”。 Use something that allows you to style it yourself, eg, jQuery Dialog . 使用允许您自己设置样式的东西,例如jQuery Dialog 。 You can make that modal if necessary (follow the links on the right of the page I sent for add'l examples). 如有必要,您可以制作该模态(按照我发送的页面右侧的链接添加示例)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.