0% found this document useful (0 votes)
67 views11 pages

Xsyser Infosystem PVT LTD: 105, Topiwala Center, Near Goregaon Station, Goregaon West, Mumbai, Maharashtra 400062

The document provides an extensive overview of JavaScript, covering topics such as syntax, enabling JavaScript, variables, operators, control flow, functions, objects, errors and exceptions, the DOM, and browser/feature detection. It includes sections on JavaScript basics, core language concepts, built-in objects like Number, String, Date, and Math, events, cookies, page redirection, dialog boxes, and regular expressions. The document serves as a detailed reference guide to the JavaScript language.

Uploaded by

UDI THAKUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views11 pages

Xsyser Infosystem PVT LTD: 105, Topiwala Center, Near Goregaon Station, Goregaon West, Mumbai, Maharashtra 400062

The document provides an extensive overview of JavaScript, covering topics such as syntax, enabling JavaScript, variables, operators, control flow, functions, objects, errors and exceptions, the DOM, and browser/feature detection. It includes sections on JavaScript basics, core language concepts, built-in objects like Number, String, Date, and Math, events, cookies, page redirection, dialog boxes, and regular expressions. The document serves as a detailed reference guide to the JavaScript language.

Uploaded by

UDI THAKUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 11

XSYSER INFOSYSTEM PVT LTD

Overview

 What is JavaScript?
 Client-Side JavaScript
 Advantages of JavaScript
 Limitations of JavaScript
 JavaScript Development Tools
 Where is JavaScript Today?

Syntax

 Your First JavaScript Code


 Whitespace and Line Breaks
 Semicolons are Optional
 Case Sensitivity
 Comments in JavaScript

Enabling

 JavaScript in Internet Explorer


 JavaScript in Firefox
 JavaScript in Chrome
 JavaScript in Opera
 Warning for Non-JavaScript Browsers

Placement

 JavaScript in <head></head> Section12


 JavaScript in <body></body> Section13
 JavaScript in <body> and <head> Sections
 JavaScript in External File

Variables

 JavaScript Datatypes
 JavaScript Variables
 JavaScript Variable Scope
105, Topiwala Center, near Goregaon Station, Goregaon
West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 JavaScript Variable Names
 JavaScript Reserved Words

Operators

 What is an Operator?
 Arithmetic Operators
 Comparison Operators
 Logical Operators
 Bitwise Operators
 Assignment Operators
 Miscellaneous Operators

If-Else

 Flow Chart of if-else


 if Statement
 ifelse Statement
 ifelse if Statement
 Switch-Case
 Flow Chart

While Loop

 The while Loop


 The dowhile Loop
 For Loop
 The for Loop
 For-in Loop

Loop Control

 The break Statement


 The continue Statement
 Using Labels to Control the Flow

Functions
105, Topiwala Center, near Goregaon Station, Goregaon
West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 Function Definition
 Calling a Function
 Function Parameters
 The return Statement
 Nested Functions
 Function () Constructor
 Function Literals

Events

 What is an Event?
 onclick Event Type
 onsubmit Event Type
 onmouseover and onmouseout
 HTML 5 Standard Events

Cookies

 What are Cookies?


 How It Works?
 Storing Cookies
 Reading Cookies
 Setting Cookies Expiry Date
 Deleting a Cookie

Page Redirect

 What is Page Redirection?


 JavaScript Page Refresh
 Auto Refresh
 How Page Re-direction Works?

Dialog Box

 Alert Dialog Box


 Confirmation Dialog Box
 Prompt Dialog Box
 Void Keyword
105, Topiwala Center, near Goregaon Station, Goregaon
West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 Page Printing
 How to Print a Page?

Objects

 Object Properties
 Object Methods
 User-Defined Objects
 Defining Methods for an Object
 Sending objects from one page to another
 The ‘with’ Keyword

Number

 Number Properties
 MAX_VALUE
 MIN_VALUE
 NaN
 NEGATIVE_INFINITY
 POSITIVE_INFINITY
 Prototype
 constructor
 Number Methods
 toExponential ()
 toFixed ()
 toLocaleString ()
 toPrecision ()
 toString ()
 valueOf ()

Boolean

 Boolean Properties
 constructor ()
 Prototype
 Boolean Methods
 toSource ()

105, Topiwala Center, near Goregaon Station, Goregaon


West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 toString ()
 valueOf ()

String

 String Properties
 constructor
 Length
 Prototype
 String Methods
 charAt()
 charCodeAt ()
 contact ()
 indexOf ()
 lastIndexOf ()
 localeCompare ()
 match ()
 replace ()
 Search ()
 slice ()
 split ()
 substr ()
 substring ()
 toLocaleLowerCase()
 toLocaleUppereCase ()
 toLowerCase ()
 toString ()
 toUpperCase ()
 valueOf ()
 String HTML Wrappers
 anchor()
 big()
 blink ()
 bold ()
 fixed ()
 fontColor ()
 fontsize ()
 italics ()
 link ()
105, Topiwala Center, near Goregaon Station, Goregaon
West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 small ()
 strike ()
 sub()
 sup ()

Arrays

 Array Properties
 constructor
 length
 Prototype
 Array Methods
 concat ()
 every ()
 filter ()
 forEach ()
 indexOf ()
 join ()
 lastIndexOf ()
 map ()
 pop ()
 push ()
 reduce ()
 reduceRight ()
 reverse ()
 shift ()
 slice ()
 some ()
 sort ()
 splice ()
 toString ()
 unshift ()

Date

 Date Properties
 constructor
 Prototype

105, Topiwala Center, near Goregaon Station, Goregaon


West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 Date Methods
 Date()
 getDate()
 getDay()
 getFullYear()
 getHours()
 getMilliseconds()
 getMinutes ()
 getMonth ()
 getSeconds ()
 getTime ()
 getTimezoneOffset ()
 getUTCDate ()
 getUTCDay ()
 getUTCFullYear ()
 getUTCHours ()
 getUTCMilliseconds ()
 getUTCMinutes ()
 getUTCMonth ()
 getUTCSeconds ()
 getYear ()
 setDate ()
 setFullYear ()
 setHours ()
 setMilliseconds ()
 setMinutes ()
 setMonth ()
 setSeconds ()
 setTime ()
 setUTCDate ()
 setUTCFullYear ()
 setUTCHours ()
 setUTCMilliseconds ()
 setUTCMinutes ()
 setUTC Month ()
 setUTCSeconds ()
 setYear ()
 toDateString ()
 toGMTString ()

105, Topiwala Center, near Goregaon Station, Goregaon


West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 toLocaleDateString ()
 toLocaleDateString ()
 toLocaleFormat ()
 toLocaleString ()
 toLocaleTimeSring ()
 toSource ()
 toString ()
 toTimeString ()
 toUTCString ()
 valeOf ()
 Date Static Methods
 Dateparse ( )
 DateUTC ( )

Math

 Math Properties
 Math-E
 Math-LN2
 Math-LN10
 Math-LOG2E
 Math-LOG10E
 Math-PI
 Math-SQRT1_2
 Math-SQRT2
 Math Methods
 abs ()
 acos ()
 asin ( )
 atan ( )
 atan2 ( )
 ceil ( )
 cos ( )
 exp ( )
 floor ( )
 log ( )
 max ( )
105, Topiwala Center, near Goregaon Station, Goregaon
West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 min ( )
 pow ( )
 random ( )
 round ( )
 vii
 viii
 sin ( )
 sqrt ( )
 tan ( )
 toSource ( )

RegExp

 Brackets
 Quantifiers
 Literal Characters
 Metacharacters
 Modifiers
 RegExp Properties
 constructor
 global
 ignoreCase
 lastIndex
 multiline
 source
 RegExp Methods
 exec ( )
 test ( )
 toSource ( )
 toString ( )

DOM

 The Legacy DOM


 The W3C DOM
 The IE 4 DOM
 DOM Compatibility

105, Topiwala Center, near Goregaon Station, Goregaon


West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
Errors and Exceptions
 Syntax Errors
 Runtime Errors
 Logical Errors
 The trycatchfinally Statement
 The throw Statement
 The onerror( ) Method
 30 Form Validation
 Basic Form Validation
 Data Format Validation

Animation

 Manual Animation
 Automated Animation
 Rollover with a Mouse Event

Multimedia

 Checking for Plug-Ins


 Controlling Multimedia
 Debugging
 Error Messages in IE
 Error Messages in Firefox or Mozilla
 Error Notifications
 How to Debug a Script
 Useful Tips for Developers

Image Map

 Browsers
 Navigator Properties
 Navigator Methods
 Browser Detection

Regular Expressions

 Introductory Guide to Regular Expressions


 Programmer's Guide to Regular Expressions

JavaScript with content

105, Topiwala Center, near Goregaon Station, Goregaon


West, Mumbai, Maharashtra 400062
XSYSER INFOSYSTEM PVT LTD
 Using JavaScript to statically display elements
 JavaScript and Dynamic Content
 Creating an attractive Hover Menu using CSS & JavaScript

Browser and features detection

 Using the navigator object to detect browser


 Using object detection to detect browser type
 Using document.createElement() to test for browser support for an element

105, Topiwala Center, near Goregaon Station, Goregaon


West, Mumbai, Maharashtra 400062

You might also like