How to make a javascript alert NOT say the name of

2019-07-03 16:04发布

My webapp alert looks like this:


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?

3条回答
我只想做你的唯一
2楼-- · 2019-07-03 16:44

I'd advise you not to use "alert". Use something that allows you to style it yourself, e.g., jQuery Dialog. You can make that modal if necessary (follow the links on the right of the page I sent for add'l examples).

查看更多
一夜七次
3楼-- · 2019-07-03 16:44

Use an HTML modal box instead of the JavaScript alert() Box.

There are plenty of options to choose from on the web, e.g. here.

查看更多
▲ chillily
4楼-- · 2019-07-03 16:45

You can't manipulate that.
Maybe you take a look at these bastards called modal popups, if youre able to use jQuery.

There are non-jquery options, too, of course.

查看更多
登录 后发表回答