Any JQuery alert() replacement for JavaScript's native one?

前端 未结 9 885
心在旅途
心在旅途 2021-02-06 16:32

I would like to replace the native javascript alert() with my own, so that I would be able to control the theme and have it more JQueryUI look and feel. I\'ve tried numerous alt

9条回答
  •  心在旅途
    2021-02-06 16:58

    I found a library a long time ago that solved this problem for alert, prompt, and confirm, it is pretty easy to use:

    Demo here: http://labs.abeautifulsite.net/archived/jquery-alerts/demo/

    // Usage:
    //      jAlert( message, [title, callback] )
    //      jConfirm( message, [title, callback] )
    //      jPrompt( message, [value, title, callback] )
    

    download here: http://labs.abeautifulsite.net/archived/jquery-alerts/jquery.alerts-1.1.zip

提交回复
热议问题