JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box
- An alert box is often used if you want to make sure information comes through to the user.
- A confirm box is often used if you want the user to verify or accept something.
- A prompt box is often used if you want the user to input a value before entering a page.
The following shows an example of an alert box.
The following shows an example of a confirm box.
The following shows an example of prompt box.
JavaScript Functions
Calling a Function with Arguments
Functions With a Return Value
JavaScript For...In Statement
JavaScript onMouseOver Event
The try...catch Statement
The try...catch statement allows you to test a block of code for errors. The try block contains the code to be run, and the catch block contains the code to be executed if an error occurs.
References
- Wendy Willard (2010). Web Design DeMYSTiFieD. McGraw-Hill Osborne Media
- http://www.w3schools.com/ accessed date 20 June 2012
ReplyDeleteThank you so much... i didnt have the knowledge in this now i get an idea about this.. thks a lot
web systems