Format the text in JavaScript alert box

前端 未结 7 2310
广开言路
广开言路 2020-12-09 02:19

How can I format the text in a JavaScript alert box? I need a word in the text to be underlined.

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 02:41

    This is not possible. You'd have to use a plugin. If you have jQuery installed there's a bunch to choose from. If not this one looks promising: http://simplemodal.plasm.it/#examples

提交回复
热议问题