Note 6 for Web Scripting

Watch & Read:

Arrays (a family of variables)
array_name = new Array() myfun = new Array()
Variables in the array: myfun [0] = first variable, myfun [1] = second variable, ...
join() concat() sort()
Confirmation
confirm("Text_for_pop_up ") confirm("Click to Continue ")
True continues with process
False process stops
Pop-up Window
window.open("URL", "target","features","") window.open("http://www.asu.edu","_blank", "width=400, height=400")
Features include dimensions of the window and tool bars
Objects
JavaScript has several built-in objects, like String, Date, and Array plus you can create your own objects.
objName=new Object() mycar=new Object()
Objects have Properties (objName.propName) and Methods (objName.methodName())

Math Medthods()

round(): Rounding number

random(): Returns a random number between 0 and 1.

max(): to return the number with the highest value of two specified numbers.

min(): to return the number with the lowest value of two specified numbers.

Terms you need to Lookup:

arrays, variables, objects (arrays,date,math)

Properties are the values associated with an object.

Methods are the actions (functions) that can be performed on objects

Review the following:

W3schools Objects

Homework:

Reminder: Post on the Discussion Board Section at least one URL of a Web Page that uses a Web script and describe how the script works.

You should Read Chapters 6 & 9

Final Step:

Imagine that your mind is a DVD recorder / player and you can review this content anytime you want.  I want you to close your eyes and quickly review in your mind everything we covered in class. 

I also want you to review everything we covered before you go to bed because I want your mind to process this information while you sleep.  You don’t need to spend much time on this review, 5 minutes will be enough!