Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,868 members, 7,817,565 topics. Date: Saturday, 04 May 2024 at 02:30 PM

Welcome To Javascript For The Total Non- Programmer - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Welcome To Javascript For The Total Non- Programmer (807 Views)

Download HTML And Javascript For Visual Learners Free Ebook And Design Any Site / Welcome To Nairaland Bloggers Family. / Javascript For Beginners - Learn How To Script Today! (2) (3) (4)

(1) (Reply)

Welcome To Javascript For The Total Non- Programmer by Rapfreak(m): 6:44pm On Nov 18, 2014
i have been Recieving inbox here on surenaija and Facebook, But today am gonna Drop what i have take most of my time to type, just to Make b]you[/b] understand this, so please am begging all webmaster/wapmaster to take note of this [bg=red]tutorials[/bg] serious.....

this tutorials and assistance to help all javascript begginners was typed by icekid Da Wapmaster



Welcome To JavaScript for the Total Non- Programmer



This tutorial will take you step by step
through the fundamentals of Javascript.
You will learn how to write functions, use
data from text boxes, create IF-THEN
conditionals, program loops, and
generally make your web page "smarter."


I teach computer classes for a living to
corporate clients of all levels. After 2
years of teaching, I have learned a lot
about communication between people of
various levels of computer experience.
This tutorial assumes that you have no prior programming experience, but that
you have created your own HTML pages.


If you find this tutorial helpful, please let
me know (it's my only reward). Also, links
are graciously accepted.


What is JavaScript?

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 excitment 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 I want check a
form for errors, I just type an if-then statement at the top of my page. No
compiling, no applets, just a simple
sequence.



[bg=red]What is Object Oriented Programming?[/bg]


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 presented in this tutorial. After you have been through the lessons, 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.


Other Javascript pages you read will
probably refer frequently to objects,
events, methods, and properties. This
tutorial will teach by example, without
focusing too heavily on OOP vocabulary.
However, you will need a basic understanding of these terms to use
other JavaScript references.


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"wink . 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.



Chapter 1, The Message Box


This is a very simple script. It opens up an
alert message box which displays
whatever is typed in the form box below.


Type something in the box. Then click
"Show Me" Show Me


HOW IT'S DONE

Here's the entire page, minus my
comments. Take a few minutes to learn
as much as you can from this, then I'll
break it down into smaller pieces.


<HTML>
<HEAD>


<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

function MsgBox (textstring) { alert (textstring) }

// - End of JavaScript - -->

</SCRIPT>

</HEAD>



<BODY>

<FORM>

<INPUT NAME="text1" TYPE=Text >

<INPUT NAME="submit" TYPE=Button VALUE="Show Me" onClick=" MsgBox (form.text1.value)">

</FORM>

</BODY>

</HTML>


i am icekid Da wapMaster s owner @ SureNaija.com
Re: Welcome To Javascript For The Total Non- Programmer by luvlyoracle(m): 7:12pm On Nov 18, 2014
Kul
Re: Welcome To Javascript For The Total Non- Programmer by Gyarados(m): 3:42am On Nov 29, 2014
I learning javascript in w3schools.com ,it's so fun sad .

(1) (Reply)

Seun ! I Have An Issue / Detailed Tutorial On How To Sign Up For Google Adsense / A Favour....

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 29
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.