devxlogo

How Many Characters Fit in an Alert Box?

How Many Characters Fit in an Alert Box?

Question:
How many characters can fit in an alert box?

Answer:
There’s no way to tell how many characters can fit in an alert box. The size of the dialogs displayed by the alert(), confirm(), and prompt() commands is determined by the browser and the platform. When using these you’re really at the mercy of browser and don’t have any control over formatting.

devx-admin

Share the Post: