[go: up one dir, main page]

0% found this document useful (0 votes)
7 views10 pages

Javascript

Uploaded by

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

Javascript

Uploaded by

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

Java Script And

Script Tag

BY: C.KOTHAI
B.SC COMPUTER SCIENCE (III
YEAR)
 Java script
java script is a browser side script
language .
java script is light weight
programming language.
java script is embedded directly into
HTML pages.
java script is an interpreted language
[ script execute without preliminary
compilation]
 History of java script
in 1995 java script was created bay a net scope developer
, named Brendan Eich first its name was Mocha and then ,it name was changed
to live script.
 java script has no standards that governed its syntax and feature, and the
community decided that it was time to standardize the language.

Technical committee #39(tc 39) was assigned to standardize the language to


make it a general purpose , cross platform , and vendor-neutral scripting language.

In 1997, Java script 1.1 was submitted to the European computer manufacture
association(ECMA)as a proposal.

Tc39 came up with ECMA 262 a standard for defining a new scripting
language named ECMA script(often pronounced EK ma script
 Java script engine
Java Script Can Do

 Manipulating HTML elements


 User Interaction
 Server Interaction
 Create a new elements
 Delete existing elements
 Modify existing elements
 Reacts on user’s action
 Access browser’s cookies and local storages
Java Script Can’t Do
 Java Script on a webpage may not readd/write files on the hard disk, copy them or
execute programs. It has no direct access to OS function.
 Java Script form one page may not access the other if they come from different
sites(from a different, domain ,protocol or port)

What makes java script unique


 Full integration with HTML/CSS
 Simply things are done simply
 Supported by all major browser and enabled by default
Script Tag
 The HTML<SCRIPT> tag embeds client-side script or links to
external java script files, enabling dynamic content, , form
validation and style manipulation. Attributes like async, defer and
src control script execution and loading, enhancing of web pages.
Syntax:
//For internal java script linking
<script>script contents……
</script>
//For external java script linking
<script src=“script.js”>
</script>
S.NO Attributes Descriptions

01 Async It is used to specify the scripty is executed


asynchronously.

02 Defer It used to specify that the script is executed when


the page has finished parsing

03 It used to specify the URL of an external script file


THANK YOU

You might also like