1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to remove site url from top of javascript alert?

Discussion in 'HTML & JavaScript' started by funque, Jan 3, 2014.

  1. funque

    funque Newbie

    Joined:
    Dec 27, 2013
    Messages:
    21
    Likes Received:
    1
    I am using simple alert function of JavaScript that shows site URL when it executes.

    How can I remove site url from top of javascript alert?

    I am getting this in IPAD and Linux machine.
     
  2. barigain

    barigain Junior Member

    Joined:
    Aug 23, 2012
    Messages:
    100
    Likes Received:
    12
    As others have said, you can't do that either using alert() or confirm().


    You can, however, create an external HTML document containing your error message and an OK button, set its <title> element to whatever you want, then display it in a modal dialog box using showModalDialog().