AlfieWebDevTips Homefor new and experienced developers
[Home Home] [Web Development Web Development ] [Code Generators Code Generators ] [Resources Resources ] [Contact Us Contact ] |WebDevTips Privacy Privacy |
Print This Page

You are here : Home - Web Development - Javascript - Alert Guide Home

Javascript alert, prompt, confirm guide



Javascript alert, prompt and confirm boxes can be a useful tool if used wisely. Only ever use them if the need arises. Don't just use them because you can.

I will cover each of the boxes in more detail later but first there are some things you should be aware of.

  • The title bar text that appears in the dialog box is not editable.
  • You cannot change the icons that are used in the boxes.
  • The style of the boxes are hard-coded into the browser and cannot be altered.

The restrictions are there to prevent malicious use by certain individuals who like trying to steal users email addresses passwords etc. That takes care of the major appearance and security issues.

This guide will step you through each of the boxes. There will be no annoying onload alerts through the guide, simple onClick examples will be used instead.

Let's look at the alert box first.


intro | alert | prompt | confirm | final chapter








Google
 

[back to top of page]   

[labelled with icra -  - this link will open in a new window] [RSS Content]

[Copyright © WebDevTips]