0 ratings 0% found this document useful (0 votes) 36 views 51 pages Css Chapter 1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here .
Available Formats
Download as PDF or read online on Scribd
Go to previous items Go to next items
Save Css Chapter 1 For Later Syllabus...
Unit ts
Basics of
JavaScript
| Programming
Unit ii:
Array, Function
‘end String
Unit Outcomes
(Uos)
(in cognitive domain)
1a) Create object to
solve the given
problem.
Develop JavaScript
to implement the
switch-case
statement for the
given problem.
Develop JavaScript
to implement loop
for solving the given
iterative problem.
Display properties
of the given object
using getters and
setters.
Develop program
using basic features
of JavaScript to
solve the given
problem.
Create array to
solve the given
problem.
Perform the
specified string
manipulation
operation on the
given String(s).
Develop JavaScript
to implement the
given function.
Topics and Sub-topics
1,1 Features of JavaScript
1.2Object Name, Property,
method, Dot syntax, main
event.
1.3 Values and Variables
1,4Qperators and Expressions-
Primary Expressions, Object
and Array initializers, function
definition expression, property
access expressions,
invocation expressions.
1.5|f Statement, if. else, if. elseif,
nested if statement.
1.6 Switch ...case statement
1.7Loop statement - for loop,
for...in loop, while loop,
do...while loop, continue
statement.
1.8 Querying and setting
properties and deleting
properties, property getters
and setters.
2.1 Array : declaring an Array,
Initializing an Array, Defining
an Array elements, Looping
an Array, Adding an Array
elements, Sorting an Array
elements, Combining an Array
elements into a String,
Changing elements of an
Array, Objects as associative
Arrays.
2.2 Function ; defining a Function,
writing a Function, adding an
arguments, scope of variable
and arguments
| 2.3Calling a function : calling a
ae(Uos)
(in cognitive domain)
Unit Unit Outcomes Topics and Sub-top) =
cg
2d) Develop JavaScript function with or Without a,
argument, calling fun, |
from HTML, function
to convert the given funetion |
Unicode to another function, Faking |
character form. value from a function
2e) Develop JavaScript 2.4 String | manipulate a sting,
to convert the given joining @ string, retrieving , |
eharactoric) character from given Position, |
Unicode the vice- retrieving a position |
character in a string, dividing
text, copying a substring,
converting string to number,
numbers to string, changing
the case of string, finding a
Unicode of a character
charCodeAt(),
fromCharCode().
versa.
Unit Ill : Form 3a) Write JavaScript to | 3.1 Building blocks of a Form,
and Event design a form to properties and methods of
Handling \ form, button, text, text area,
accept input values | checkbox, radio button, selec
for the given element
problem. 3.2Form events — mouse event,
3b) Use JavaScript to key events
implement form 3.3 Form objects and elements fs
events to solve the | 3-4Changing attribute V2
‘A Peper dynamically fst
given problem. =| 3.5Changing option
3c) Develop JavaScript dynamically von
to dynamically | 3.6 Evaluating checkbox select
call
assign specified | 3.7 Changing a label cyan
attribute value to | 3.8 Manipulating form elem a
nc
the given form | 3.9 Intrinsic JavaScript oe os
disabling elements: re
elements.
control.
3d) Use the given
intrinsic function
with specified
parameters(in cognitive domain)
a
Unit Outcomes
(Uos)
Topics and Sub-topics
Unit V : Regular
Expression,
Rollover and
Frames
Geren
4a)
4b)
Create cookies
based on the given
problem.
Develop JavaScript
to manage a cookie
in the given
manner.
Write JavaScript to
manipulate the
specified attributes
of window object in
the given manner.
Write JavaScript to
create browser
history of the given
object.
Compose relevant
regular expression
for the given
character pattern
search.
Develop JavaScript
to implement
validations using
the given character
pattern search.
Develop JavaScript
to implement
validations using
the given regular
expression.
Create frames
based on the given
problem.
Create window
object as per the
given problem,
Develop JavaScript
for creating rollover
effect for the given
situation.
4.1 Cookies ~ basic of cookies,
reading a cookie value, writing
a cookie value, creating a
cookies, deleting a cookies,
setting the expiration date of
cookie.
4,2 Browser — opening a window,
giving the new window focus,
window position, changing the
content of window, closing a
window, scrolling a web page,
multiple windows at once,
creating a page in new
window, JavaScript in URL’s,
JavaScript security, Timers,
Browser location and history.
5.1 Regular Expression -
language of regular
expression, finding non
matching characters, entering
a range of characters,
Matching digits and non-digits,
matching punctuations and
symbols, matching words,
replacing a text using regular
expressions, returning the
matched characters, regular
expression object properties.
5.2Frames — create a frame,
invisible borders of frame,
calling a child window,
changing a content and focus
of a child window, writing to a
child window, —_ accessing
elements of another child
window.
§.3 Rollover — creating rollover,
text rollover, multiple actions
for rollover, more efficient
rollover.
aUnit VI: Menus,
navigation and
web page
protection
Refer chapter 6
Unit Outcomes
(Uos)
(in cognitive domain)
Toples and Sub-topicg
6a) Develop JavaScript
to manage the
given status bar
Develop JavaScript
to create the given
6.1 Status bar — builds a Stati
NC
message, changing fe
message using rollover
moving the Message ajo, |
the status bar 9)
6b
banner. 6.2Banner — loading a |
6c) Develop JavaScript displaying banner
to create the given acvertisement, linking a
sae a banner advertisement to ur
i 6.3 Slide show -— |
6d) Develop JavaScript a OW = creating a ads |
to create the given
Menu.
Write JavaScript to
Protect a webpage
6.4 Menus —~ creating a pull down |
menu, dynamically changing 2 |
menu, validating — menu |
Selection, floating menu, chain
6e
in the specified select menu, tab menu, pop-
manner, up menu, sliding menu,
highlighted menu, folding a
tree menu, context menu
scrollable menu, side bar
menu
6.5 Protecting web page — hiding
your code, disabling the right
mouse button using
JavaScript, concealing email
address
6.6Frameworks of JavaScript and
its application| Basics of JavaScript
Programming
Features of JavaScript
Object Name, Property, method, Dot syntax, main event.
Values and Variables
Operators and Expressions- Primary Expressions, Object and
Array initializers, function definition expression, property access
expressions, invocation expressions.
If Statement, if... else, if..elseif, nested if statement.
Switch ...case statement
Loop statement - for loop, for...in loop, while loop, do...while loop,
continue statement.
Querying and setting properties and deleting properties, property
getters and setters.
*¥ Introduction to JavaScript
JavaScript?
Enlist different uses of JavaScript.
the need of Java script.
to write JavaScript program?
How to print data ‘in JavaScript?
* JavaScript is a dynamic computer programming language that executes
on the browser. It modifies static HTML web pages into interactive web
pages by dynamically updating content, validating form data, controlling
multimedia, animate images on the web pages.a
i
Client Side Scripting Language (MSBTE) (Basics of JavaScript Prog.) Pg
an (1-2)
It is a scripting language for creati i
iene aaness Cre eaapemeeae apes Sonam web page content, j,
creates elements for improving site visitors’ interaction with web :
. i ‘i pa;
such as dropdown menus, animated graphics, and i Bes
i grap! and dynamic background
cotors
© Ic is lightweight and most commonly used as a part of web pages, wh,
implementations allow client-side script to interact with the — i
make dynamic pages. hy
* Tt is an interpreted programming language with object-oriente,
capabilities: :
* JavaScript was initially created to “make web pages alive”.
© The program in this language is called scripts. They can be written with,
HTML in a web pages and run automatically as the page loads.
e — Scripts are provided and executed as plain text. They don’t need special
preparation or compilation to run.
e JavaScript can execute not only in the browser, but also on the server, or
actually on any device that has a special program called the JavaScript
engine.
«The browser has an embedded engine sometimes called a “JavaScript
virtual machine” and the different engines have different codenames like
8 in Chrome, Opera and Edge, and SpiderMonkey in Firefox.
's commonly used for client-side scripting on the World Wide
© JavaScript i
rver applications and
Web, and it is increasingly being used for writing se:
services using Node.js.
t= History :
* JavaScript was invented by Bi
ECMA standard in 1997. ;
* JavaScript became a fully independent language with
specification called ECMAScript.
* ECMAScript is the official name of the language and it is a JavaScript
standard meant to ensure the interoperability of web pages across
different web browsers.
* ECMAScript versions have been abbreviated to ES1, ES2, ES3, ES5:
and BS6. Since 2016 new versions are named by year (ECMAScript
2016 / 2017/2018). ae
yendan Eich in 1995, and became an
its own
Pil Tech-Neo Publications i
(sew Syl wef academic year 19-20) (D5-16A)Client Side Scripting Language (MSBTE) (Basics of JavaScript Prog.) Pg. no. (1-3)
s use
JavaScript can put dynamic text into an HTML page.
e JavaScript can react to events.
JavaScript can read and write HTML elements.
JavaScript can be used to validate data.
JavaScript can be used to detect the visitor’s browser.
— JavaScript can be used to create cookies
& Why Study JavaScript?
JavaScript is one of the three languages all web developers must learn:
1. HTML to define the content or structure of web pages.
2. CSS to specify the layout of web pages. It described the look and
formatting of a document.
3. JavaScript to program defines dynamic behavior of web pages;
provides programming logic for interaction with the user and handle
user events.
s= Editor
There are different editors for writing the JavaScript program:
i. Notepad 2. Visual Studio Code
3. Eclipse 4, Atom
5. Sublime Text 6, Brackets
7. NetBeans 8. Vim
5 How to write JavaScript program?
* JavaScript can be inserted within the head, the body, or use external
JavaScript file
© The HTML tag is used to insert a JavaScript into an
HTML page
Syntax
"yayasctipt” type" text/javascript” sre = "extemal
Sscript language
Jay
script file pa!
ef academic year 19-20) (D5-16A) (el Tech-Neo Publications
(Ne(Basics of JavaScript Pre,
nguage (MSBTE
Javascript code gors here
OR
* The language and type attributes not required in new JavaScript Version
It is optional “
* Ending statements with a semicolon is Optional; required when We ven
to put multiple statements on a single line.
J
There are three different ways JavaScript can be used in HTML, such as. f
1. Inline JavaScript
Inline JavaScript, the JavaScript code can be add in HTML tags in Some
special JavaScript-based attributes.
For example, HTML tags have event attributes that allow to execu:
some code inline when an event is triggered.
Example
:
... :
eeript type = "extjavaSeript"> ;
const person = {fname:"Ravi", Iname:"Somwanshi”, age:25}; :
for (let x in person) {
document.write(person[x} + “ ") : .
: :
Output
Ravi
> Object Example on
2. By creating instance of Object
* Create a new JavaScript object using new Object() and tt® doe:
Properties. a
pga pe Be .
heed Objen Bec :
oe ect Example :
Z
const panes = how Object, Exa
person. names "Ray; : : eh
Person.Inames: “Somwanshi"; eh
enon-tge25; t
Wment-write(perso, sont <
: ni ; vig" + pes a
years old.”); PaO 8H person.iname + "is" + P™ “1
S/scripi> a