How to edit a JavaScript alert box title?

前端 未结 11 2363
执笔经年
执笔经年 2020-11-22 10:15

I\'m generating a JavaScript alert with following code in C# .NET page:

Response.Write(\"

        
11条回答
  •  时光取名叫无心
    2020-11-22 10:27

    There's quite a nice 'hack' here - https://stackoverflow.com/a/14565029 where you use an iframe with an empty src to generate the alert / confirm message - it doesn't work on Android (for security's sake) - but may suit your scenario.

提交回复
热议问题