Home Products Support Free Trial Information Logo Image

Home > Products > Ebooks > Javascript Ebook

Javascript EBook

This Javascript ebook introduces basic Javascript code with working examples and applications. Some concepts of Object Oriented Programming are also discussed. You can use Javascript to enhance your web pages for example

  • control certain browser actions
  • create interactive and dynamic documents
  • read and write cookie values

and much more..

Javascript is an object oriented programming - (OOP) or scripting language that works only with your browser (i.e. the client-side). A lot of the so-called cool-stuff you see on many web pages is done with Javascript

So if you want to know more about Javascript, OOP and how to enhance your web pages, here is your chance.

This book is now available to registered members of our Joomla PHP Site.

To provide you with more information we have summarized the contents of this Javascript book:

SUMMARY OF CONTENTS

Javascript Basics.

  • Elelments of Javascript (Browser, Objects, Properties, Methods, Coding)
  • OOP (Object Oriented Programming Concepts)
  • Dot Notation and Syntax - eg document.write();

Objects

  • Event Handlers - eg onLoad(), onFocus()
  • Object Hierarchy (Window | Frame | Location | Document | Form | Image | Text )
  • Properties, Methods, Event handlers
  • StandAlone Objects (Array, Date, String)

Javascript Code

  • Statements - eg document.write("This is a really good Javascript book!");
  • Data Types (number, string, boolean, null)
  • Variables and Values
  • Operators (eg x++ is same as x=x+1)
  • Assignments (x+=y adds the value of y to x (same as x=x+y))
  • Comparisons (eg x==y true if x equals y)

Programming Constructs

  • Sequence
  • Iteration (for loop)
  • Selection (if-else; switch case)
  • Statements eg:
  • break; continue; do-while; for-in; if-else; return; switch; var; with
  • comments

SCRIPT Tags

  • HTML container tags
  • Placement of code
  • Noscript tag

Examples

  • Document write method
  • Window alert method
  • A simple getName function
  • A simple date function
  • A basic calculator

The String Object

  • length property
  • methods - eg: charAt(); concat(); indexOf(); link();
  • methods - eg: substring(); toLowerCase(); toUpperCase()
  • Tutorial example

The Date Object

  • creating a date object
  • Date methods: eg getFullYear(); getMonth(); getDate(); valueOf()
  • Date examples and Tutorial

The Array Object

  • Creating a new Array
  • Array length property
  • Array methods (concat, join, reverse, sort)
  • Some examples eg : for (x=0; x <nameArray.length; x++)
  • Tutorial

The Math Object

  • Math.floor function
  • Math.random function
  • Lotto number generator example

The Window Object

  • Properties - eg: closed, defaultStatus,document,history l,ocation ,name,scrollbars,self
  • Methods - eg: Functions: alert(); back(); close(); home(); propmt(); stop()
  • Methods - eg: Events : onBlur(); onError(0; onFocus()
  • Tutorial

The Document Object

  • Properties -eg: applets, cookie,domain,forms,images,links,referrer,title,URL
  • Methods - eg: close(); open(); write()
  • Tutorial

The History Object

  • Properties - eg current, previous, next, length
  • Methods - back(); forward(); go()
  • Example

Images

  • the IMG tag
  • new constructor
  • Properties - eg: border, height, name, scr, width
  • Events - eg: onClick(); onMouseOver()

The Navigator Object

  • Properties - eg: appName, appVer
  • Methods - eg: javaEnabled()

The Location Object

  • Properties - eg: host, hostname, protocol, search
  • Methods - eg: reload(); replace(}
  • Examples

The Link Object

  • Properties eg - hash,hostname,href
  • Events eg - onClick(); onMouseOver()

The Form Object

  • Properties - eg: action, elements,length,name
  • Functions - eg: reset(); submit()
  • Events - onSubmit()
  • Form Objects
    • Button
    • Checkbox
    • Hidden
    • Password
    • Radio
    • Reset
    • Submit
    • Text
    • Textarea

JavaScript Applications

  • Pull DownMenu Choices
  • Take Me There script
  • Cycling Banners
  • Check Browser
  • Image Rolls
  • Slide Show
  • Dynamic Messages
  • Printing
  • An Order Form
  • Dynamic Text


How to get this Javascript ebook

We offer this Javascript ebook for free if you purchase or have purchased our

HTML Primer ebook.

Then you just need to send an email to RDS Ebooks to claim your free Javascript ebook.


Copyright © 2006-2009 RDS Online - All rights reserved | Policies | Feedback