Not reliably, no. The ECMAScript specification does not describe how alert() boxes should appear. Long messages will be truncated. Also, using the old-school message-boxes like alert(), confirm() and prompt() are discouraged because they block the UI thread. Consider using HTML5's <dialog> instead.
alert()boxes should appear. Long messages will be truncated. Also, using the old-school message-boxes likealert(),confirm()andprompt()are discouraged because they block the UI thread. Consider using HTML5's<dialog>instead.