Wednesday, June 20, 2012

Web systems day 04-Topic: JavaScript

JavaScript Popup Boxes
JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box
  1. An alert box is often used if you want to make sure information comes through to the user.
  2. A confirm box is often used if you want the user to verify or accept something.
  3. 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
  1. Wendy Willard (2010). Web Design DeMYSTiFieD. McGraw-Hill Osborne Media
  2. http://www.w3schools.com/ accessed date 20 June 2012

1 comment:



  1. Thank you so much... i didnt have the knowledge in this now i get an idea about this.. thks a lot






    web systems

    ReplyDelete

Mounting USB drives in Windows Subsystem for Linux

Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives form...