This action might not be possible to undo. Are you sure you want to continue?
client-side web development
Netscape browser version 2.0B3 in December of 1995
y Java (developed by Sun Microsystems) is a powerful and
much more complex programming language
execute without preliminary compilation)
y Many programmers continue this habit when writing
y But in general, semicolons are optional! y However, semicolons are required if you want to put
more than one statement on a single line.
Handling Older Browsers
WHILE the page loads.
y A variable is a "container" for information you want to
store. y Rules for variable names:
y Variable names are case sensitive y They must begin with a letter or the underscore
You can create a variable with the var statement: var strname = some value You can also create a variable without the var statement: strname = some value
y As normal to other C Based Langs
y Alert : An alert box is often used if you want to make
sure information comes through to the user. alert("sometext")
y A confirm box is often used if you want the user to
verify or accept something. y When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed. y If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false. y confirm("sometext")
y A prompt box is often used if you want the user to
input a value before entering a page. y When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. y If the user clicks "OK" the box returns the input value. If the user clicks "Cancel" the box returns null. y Syntax: y prompt("sometext","defaultvalue")