The different kinds of Javscript and their uses are:
- Alert box – used to ensure information is recieved by the user, they usually have to click ‘OK’ or ‘continue’ to continue on to the page they’re looking for. Often used as warnings of some kind, e.g. ‘This site required Flash’.
- Confirm box – used to make the user either confirm or cancel something. If the user clicks to confirm, usually either ‘OK’, ‘Yes’ or ‘Confirm’ they will then be taken to the page they were clicked to proceed to, but if they click ‘Cancel or ‘No’ they will usually be taken back to the page they were previously on. An example of when these are used is for age verification, e.g. ‘Confirm you are at least 18 years of age’.
- Promt box – users must input information before they can continue. If the user enters the valid data they will be taken to the page they clicked to proceed to, if they choose to cancel they will usually be taken to the page they were previously on. Could be used if the user is required to enter a code or their name to proceed.
No related posts.