• Complain

Kathie Kingsley-Hughes - JavaScriptв„ў 1.5 by Example

Here you can read online Kathie Kingsley-Hughes - JavaScriptв„ў 1.5 by Example full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2001, publisher: Que, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Kathie Kingsley-Hughes JavaScriptв„ў 1.5 by Example

JavaScriptв„ў 1.5 by Example: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "JavaScriptв„ў 1.5 by Example" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

JavaScript 1.5 by Example starts with a taste of JavaScript what it is, what its for, and what readers need toget started. The book then explains how to add JavaScript toexisting HTML pages, leading readers into the fundamentals of thelanguage including JavaScript syntax, notation and conventions,communicating with users via input and output, manipulatingvariables and data, logic statements in JavaScript, and objectprogramming with JavaScript. The book progresses to an explanationof JavaScripts role in Dynamic HTML, and how that power canbe exploited to create animation, navigation, forms processing andmore.

Kathie Kingsley-Hughes: author's other books


Who wrote JavaScriptв„ў 1.5 by Example? Find out the surname, the name of the author of the book and a list of all author's works by series.

JavaScriptв„ў 1.5 by Example — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "JavaScriptв„ў 1.5 by Example" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Index
Chapter 1. Getting into JavaScript!

JavaScript is a scripting language that enables you to add a new level of interactivity and function to Web pages. After you learn JavaScript, your Web development will take on an entirely new level. In this, the first chapter, you discover why being able to write JavaScript is nowadays almost as important as knowing how to use HTML. You will also get a bit of background on JavaScript before you begin writing JavaScript in earnest in the next chapter.

From this point on, your Web pages will never be the same again!

This chapter teaches you about the following:

JavaScript Is Everywhere

Take a look at some of the sites you visit on a regular basis. What do you see? The pages probably all have text on them, and also a load of images, right? But take a closer look; what else do you see? Do you see anything else? Maybe a clock telling you the time or a message scrolling in the browser status bar? Perhaps the site has a form to fill in: Notice when you omit some information, a message pops up telling you that a problem exists. On some of the pages, you might see images that move across the screen or text that changes when you click it. With each of these features and effects, there is a good chance that you are seeing JavaScript in action! These are the kinds of things that someone with a good knowledge of JavaScript can do. Quickly and easily.

TIP

It's a really good idea to keep an eye out for what other developers, like yourself, are doing with JavaScript. This is a great way to find out What's Hot and What's Not!


Throughout this book, you will not only be learning how JavaScript works (as opposed to just learning how to cut and paste scripts into your Web pages), but you'll also get plenty of ideas for new and exciting applications you can create for yourself using JavaScript.

Other Tools

What else can you do to make your life as a JavaScripter easier? Here are a couple of ideas.

Creating an HTML Template

If you are going to be using a text editor to create your Web pages, it makes sense to cut down on the amount of repetitive typing you have to do. One way you can do this is by using an HTML template. A template is a text file containing the skeleton HTML that goes into every page. It can be customized to suit your own situation, but as a starting point, the following might suffice:


HTML Template Page

This template has been customized a little to accommodate the fact that you're going to be learning how to write JavaScript, but don't worry if you don't understand something in it. You will be looking at it in more detail in the next chapter!

After you have created this template (shown in ), you can save it in a convenient location on your hard drive, such as your Windows desktop or your current project folder. Just remember to rename the file before you save it after you've started working on it.

Figure 1.4. Your HTML template displayed in Windows Notepad.

NOTE If you have a standard layout for the HTML of your pages you can add this - photo 1


NOTE

If you have a standard layout for the HTML of your pages, you can add this to the template.


Keeping a Script Library

As you learn to write JavaScript, one thing you can do that will be an enormous timesaver is to create your own JavaScript library. This need be nothing more than a bunch of text files in a folder. (Give them meaningful names, though, because going through them all looking for a script you need can be more time-consuming than typing it out!)

If you really want to build a great library, you can create a database of JavaScript snippets, giving each a title and including some notes about each of them. This can make finding and retrieving the right script very easy.

TIP

By keeping a JavaScript library, you not only make future programming easier and less time-consuming, but you also make tracking your progress and watching just how much you have improved easy.


What's Next

Now that we've covered the origins, history, and future of JavaScript and have looked at what you will need to become a bona fide JavaScripter, you are ready to start writing some script! After you've completed the next chapter, you will understand how JavaScript and HTML come together in a Web page.

Why You Need to Learn JavaScript

It is because JavaScript is used so much on the Web that you really need to know how to use it. Because so many Web sites add script to their pages (for a variety of reasons, as you will find out), sites that don't use script can look bland, or even boring, in comparison. So, even if your content is otherwise great, your visitors are less likely to return. Of course, every Web site needs good content, but spicing it up with some JavaScript can not only make it clearer, but can also add some useful functionalitymaking it more memorable.

TIP

Remember, sometimes the only thing that separates successful from unsuccessful Web sites is how they look and feel. Invariably, the site that gives the visitor the best browsing experience is the most popular.


CAUTION

Be wary of cut-and-paste JavaScripts that you can find on the Web. Many are poor- quality scripts, but worse still is the fact that you can find the same script used on literally thousands of Web sites. Learning JavaScript frees you from this and enables you to give your visitors a totally uniqueand memorableexperience.


Plenty of other practical reasons exist for learning and using JavaScript, too. For example, a few lines of script can be used to direct the visitor to the page appropriate to his browser type and settings, or it can automate a task for the visitor, such as totaling up columns in an online order form. These tasks might not be visually stunning or outwardly impressive, but they are the sign of a professional developer who cares for her visitors.

JavaScript History

JavaScript (or Livescript as it was called back then) was invented by Brendan Eich of Netscape Communications, and its name was changed only when Java became a very fashionable Web term.

The first browser to support JavaScript was Netscape Navigator 2.0. It was then that Microsoft saw how useful a Web scripting language would be and released its own variant, called JScript 1.0, with the Internet Explorer 3.0 browser and Internet Information Server software. Microsoft's JScript 1.0 was pretty much compatible with Netscape's JavaScript 1.0, which meant that JavaScript written for one of the browsers had a very good (but not always 100%) chance of working as expected in the other browser.

Later, Netscape released JavaScript 1.1 with Netscape Navigator 3.0 browser and LiveWire Web server software. This version had all the features of JavaScript 1.0 plus many new features and capabilities. Microsoft responded to this by upgrading its own JScript but decided not to include all the features included in JavaScript 1.1. This was the beginnings of browser incompatibility, in which HTML and scripts written for one browser wouldn't work properly when viewed in the competitor's browser.

Netscape made the JavaScript definition public (that is, they attempted to make their version the most popular by being open with everyone about what they were doing). Shortly thereafter, Netscape agreed with, among others, Microsoft to create a neutral standard. The European Computer Manufacturing Association (ECMA), a Swiss standards body, began developing the standard in November 1996. In July 1997, they released the standard, calling the language ECMAScript. While all this was happening over in Switzerland, Netscape released JavaScript 1.2 with their Netscape Navigator 4.0 browser, and Microsoft released JScript 2.0 for the Internet Explorer 3.0 browser. Neither JavaScript 1.2 nor JScript 2.0 was 100% compliant with the ECMAScript standard (which is sometimes also referred to as ECMA-262 ).

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «JavaScriptв„ў 1.5 by Example»

Look at similar books to JavaScriptв„ў 1.5 by Example. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «JavaScriptв„ў 1.5 by Example»

Discussion, reviews of the book JavaScriptв„ў 1.5 by Example and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.