tightly to the core concepts of computer programming.
This webpage cover the basic concepts and illustrate the
Your web page document is an object. Any table, form, button, image, or link on your
page is also an object. Each object has certain properties. For example, the background
color of your document is written document.bgcolor. You would change the color of your
page to red by writing the line: document.bgcolor="red".
Most objects have a certain collection of things that they can do. A new document is
opened with the method document.open(). You can write "Hello World" into a document by
typing document.write("Hello World").
Open() and write() are both methods of the object: document.
Events are how we trigger our functions to run. The easisest example is a button,
whose definition includes the words onClick="run_my_function()". The onClick event,
as its name implies, will run the function when the user clicks on the button.
Other events include OnMouseOver, OnMouseOut, OnMouseOut, OnFocus, OnBlur, OnLoad
Everything between // and the end of a line is a comment and will be ignored.
You will learn how to write functions, use data from text boxes , create if-then
conditionals, program loops etc.
of web pages. It can enhance the dynamics and interactive features of page by allowing
you to perform calculations, check forms, write interactive games, add special effects,
customize graphics selections, create security passwords and more.
OOP is a programming technique designed to simplify complicated programming concepts.
Object-oriented programming consists of Objects, Methods and Properties.
This is a very simple script.
It opens up an alert message box which displays whatever
is typed in the form box below.