Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

What is JavaScript !

 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
February 09, 2008, 08:26:40 AM




JavaScript is an easy-to-use programming language that can be embedded in the header of your web pages. It can enhance the dynamics and interactive features of your page by allowing you to perform calculations, check forms, write interactive games, add special effects, customize graphics selections, create security passwords and more.


What’s the difference between JavaScript and Java?

Actually, the 2 languages have almost nothing in common except for the name. Although Java is technically an interpreted programming language, it is coded in a similar fashion to C++, with separate header and class files, compiled together prior to execution. It is powerful enough to write major applications and insert them in a web page as a special object called an “applet.” Java has been generating a lot of excitement because of its unique ability to run the same program on IBM, Mac, and Unix computers. Java is not considered an easy-to-use language for non-programmers.

JavaScript is much simpler to use than Java. With JavaScript, if you want to check a form for errors, you just need to type an if-then statement at the top of page. No compiling, no applets, just a simple sequence.

What is Object Oriented Programming?

Everyone that wants to program JavaScript should at least try reading the following section. If you have trouble understanding it, don’t worry. The best way to learn JavaScript is from the examples. After you have been through the details, come back to this page and read it again.

OOP is a programming technique (note: not a language structure - you don’t even need an object-oriented language to program in an object-oriented fashion) designed to simplify complicated programming concepts. In essence, object-oriented programming revolves around the idea of user- and system-defined chunks of data, and controlled means of accessing and modifying those chunks.

Object-oriented programming consists of Objects, Methods and Properties. An object is basically a black box which stores some information. It may have a way for you to read that information and a way for you to write to, or change, that information. It may also have other less obvious ways of interacting with the information.

Some of the information in the object may actually be directly accessible; other information may require you to use a method to access it - perhaps because the way the information is stored internally is of no use to you, or because only certain things can be written into that information space and the object needs to check that you’re not going outside those limits.

The directly accessible bits of information in the object are its properties. The difference between data accessed via properties and data accessed via methods is that with properties, you see exactly what you’re doing to the object; with methods, unless you created the object yourself, you just see the effects of what you’re doing.


Objects and Properties

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 (information about the object). 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”

The contents (or value) of a textbox named “password” in a form named “entryform” is document.entryform.password.value.

Methods

Most objects have a certain collection of things that they can do. Different objects can do different things, just as a door can open and close, while a light can turn on and off. 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

Events are how we trigger our functions to run. The easiest 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, OnFocus, OnBlur, OnLoad, and OnUnload.


By,
Other Web Source




You can find more information here :-



*** Please do not forget to leave your comments about this article ***

« Last Edit: February 04, 2010, 11:50:25 AM by Admin »
 
webmaster forum
Activity
0%
 
Regular Coder
Gender: Female
Posts: 85
Topics: 15
February 21, 2010, 11:33:56 AM

very good article.
short, but doesn't feather the meaning and basic ideas.
thank you Admin

I'm trying to express myself Smiley

my blog: http://www.libertydash.blogspot.com/

smashwords: http://www.smashwords.com/books/view/91236
 
webmaster forum
jesila  Offline
Activity
0%
 
New Coder
Posts: 29
Topics: 0
May 18, 2010, 12:53:43 AM

Hi, this is really helpful thread. I wanted you to put this among more people to help them. please kindly visit this site and help possibly more people.
« Last Edit: December 03, 2011, 10:15:41 AM by Admin »
 
webmaster forum
mak14317  Offline
Activity
0%
 
Skilled Coder
Real name: Janne
Location: california
Gender: Male
Age: 26
Posts: 108
Topics: 1
WWW
May 16, 2011, 11:44:53 PM

JavaScript is a prototype-based, object-oriented scripting language that is dynamic, weakly typed and has first-class functions. It is also considered a functional programming language....

herbal vaporizer
Happy vappy vaporizer
Eclipse Vape
Ivape
 
webmaster forum
kellylsn  Offline
Activity
0%
 
Professional Coder
Posts: 229
Topics: 7
July 26, 2011, 10:22:24 PM

Its very good article to know about basic javascript and its difference from java.

Payday Loan
Online Easy Loans
 
webmaster forum
Activity
0%
 
New Coder
Posts: 18
Topics: 2
September 20, 2011, 12:44:30 AM

This graphic design thing will show how creative the webmaster may be and it will lead to the generation of those sites that are quite attractive and lively.  

UK Dissertation Writing | fulvic acid | CPR and first aid certification
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page January 02, 2012, 09:42:48 AM