Movatterモバイル変換


[0]ホーム

URL:


PPT, PDF16 views

JS-Slides_for_begineers_javascript-1.ppt

js slidesjfdsalkaslgkasd

Embed presentation

Download to read offline
1. JavaScript OverviewWhat is JavaScript ? JavaScript started life as LiveScript, but Netscape changed thename, possibly because of the excitement being generated byJava.to JavaScript. JavaScript made its first appearance inNetscape 2.0 in 1995 with a name LiveScript. JavaScript is a lightweight, interpreted programming languagewith object-oriented capabilities that allows you to buildinteractivity into otherwise static HTML pages. The general-purpose core of the language has been embeddedin Netscape, Internet Explorer, and other web browsers
JavaScript is: JavaScript is a lightweight, interpreted programming language Designed for creating network-centric applications Complementary to and integrated with Java Complementary to and integrated with HTML Open and cross-platform
 Client-side JavaScript is the most common form of thelanguage. The script should be included in or referenced by anHTML document for the code to be interpreted by the browser. It means that a web page need no longer be static HTML, butcan include programs that interact with the user, control thebrowser, and dynamically create HTML content. The JavaScript code is executed when the user submits theform, and only if all the entries are valid they would besubmitted to the Web Server. JavaScript can be used to trap user-initiated events such asbutton clicks, link navigation, and other actions that the userexplicitly or implicitly initiates.Client-side #
Advantages of #
Limitations with #
JavaScript Development Tools: One of JavaScript's strengths is that expensive developmenttools are not usually required. You can start with a simple texteditor such as Notepad. Since it is an interpreted language inside the context of a webbrowser, you don't even need to buy a compiler. To make our life simpler, various vendors have come up withvery nice JavaScript editing tools. Few of them are listed here:– Microsoft FrontPage– Macromedia Dreamweaver MX– Macromedia HomeSite 5– Yaldex Software Inc., Free JavaScript Editor
2. JavaScript Syntax A JavaScript consists of JavaScript statements that are placed withinthe <script>... </script> HTML tags in a web page. You can place the <script> tag containing your JavaScript anywherewithin you web page but it is preferred way to keep it within the<head> tags. The <script> tag alert the browser program to begin interpreting allthe text between these tags as a script. So simple syntax of yourJavaScript will be as follows (next slide)
<script language="javascript"type="text/javascript">JavaScript code</script>The script tag takes two important attributes: language: This attribute specifies what scripting language you areusing. Typically, its value will be javascript. Although recent versions ofHTML (and XHTML, its successor) have phased out the use of thisattribute. type: This attribute is what is now recommended to indicate thescripting language in use and its value should be set to "text/javascript".
Your First JavaScript Script:<html><body><script language="javascript"type="text/javascript"><!--document.write("Hello World!")//--></script></body></html>
 JavaScript ignores spaces, tabs, and newlines that appear inJavaScript programs. Because you can use spaces, tabs, and newlines freely in yourprogram so you are free to format and indent your programs ina neat and consistent way that makes the code easy to readand understand.Semicolons are Optional: Simple statements in JavaScript are generally followed by asemicolon character, just as they are in C, C++, and Java.JavaScript, however, allows you to omit this semicolon if yourstatements are each placed on a separate line. For example, thefollowing code could be written without semicolonsWhitespace and Line Breaks:
• JavaScript is a case-sensitive language. This means thatlanguage keywords, variables, function names, and any otheridentifiers must always be typed with a consistent capitalizationof letters.• So identifiers Time, TIme and TIME will have different meaningsin JavaScript.• NOTE: Care should be taken while writing your variable andfunction names in JavaScript.Case Sensitivity:
Comments in #
Example 1:<script language="javascript" type="text/javascript"><!--// This is a comment. It is similar to comments in C++/** This is a multiline comment in JavaScript* It is very similar to comments in C Programming*///--></script>
Example 2:<html><head><script>function displayDate(){document.getElementById("demo").innerHTML=Date();}</script></head><body><h1>My First JavaScript</h1><p id="demo">This is a paragraph.</p><button type="button" onclick="displayDate()">DisplayDate</button></body></html>

Recommended

PPTX
Unit 4 Java script.pptx
PPTX
JavaScript New Tutorial Class XI and XII.pptx
DOCX
Javascript tutorial
PPT
JAVA SCRIPT
DOC
2javascript web programming with JAVA script
PPT
JS-Slides-1hgvhfhgftgfvujguyghvhjbjbnnhg
PPTX
introduction to js
PPTX
Javascript 01 (js)
PPTX
Java script Basic
PDF
Web programming UNIT II by Bhavsingh Maloth
PDF
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
PDF
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
PPTX
Js syntax
PDF
Basic JavaScript Tutorial
PPTX
Introduction to Javascript
DOC
Basics java scripts
PPT
Java script
DOC
Java script by Act Academy
PPT
JavaScript (1).pptdffdfvdfvfvfvfefwefedfe
PPTX
Java script
PPTX
Java script
PPT
Introduction to JavaScript
PDF
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
PDF
JS BASICS JAVA SCRIPT SCRIPTING
PPT
Java script
PPTX
Java script
PPTX
JavaScript_III.pptx
PPTX
Java script introduction
PDF
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
DOCX
Mobile applications Devlopment ReTest year 2025-2026

More Related Content

PPTX
Unit 4 Java script.pptx
PPTX
JavaScript New Tutorial Class XI and XII.pptx
DOCX
Javascript tutorial
PPT
JAVA SCRIPT
DOC
2javascript web programming with JAVA script
PPT
JS-Slides-1hgvhfhgftgfvujguyghvhjbjbnnhg
PPTX
introduction to js
PPTX
Javascript 01 (js)
Unit 4 Java script.pptx
JavaScript New Tutorial Class XI and XII.pptx
Javascript tutorial
JAVA SCRIPT
2javascript web programming with JAVA script
JS-Slides-1hgvhfhgftgfvujguyghvhjbjbnnhg
introduction to js
Javascript 01 (js)

Similar to JS-Slides_for_begineers_javascript-1.ppt

PPTX
Java script Basic
PDF
Web programming UNIT II by Bhavsingh Maloth
PDF
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
PDF
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
PPTX
Js syntax
PDF
Basic JavaScript Tutorial
PPTX
Introduction to Javascript
DOC
Basics java scripts
PPT
Java script
DOC
Java script by Act Academy
PPT
JavaScript (1).pptdffdfvdfvfvfvfefwefedfe
PPTX
Java script
PPTX
Java script
PPT
Introduction to JavaScript
PDF
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
PDF
JS BASICS JAVA SCRIPT SCRIPTING
PPT
Java script
PPTX
Java script
PPTX
JavaScript_III.pptx
PPTX
Java script introduction
Java script Basic
Web programming UNIT II by Bhavsingh Maloth
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
Js syntax
Basic JavaScript Tutorial
Introduction to Javascript
Basics java scripts
Java script
Java script by Act Academy
JavaScript (1).pptdffdfvdfvfvfvfefwefedfe
Java script
Java script
Introduction to JavaScript
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
JS BASICS JAVA SCRIPT SCRIPTING
Java script
Java script
JavaScript_III.pptx
Java script introduction

Recently uploaded

PDF
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
DOCX
Mobile applications Devlopment ReTest year 2025-2026
PPTX
Details of Muscular-and-Nervous-Tissues.pptx
PPTX
Limpitlaw "Licensing: From Mindset to Milestones"
PPTX
How to Configure Push & Pull Rule in Odoo 18 Inventory
PPTX
Semester 6 UNIT 2 Dislocation of hip.pptx
PPTX
How to Manage Package Reservation in Odoo 18 Inventory
PPTX
AI_in_Daily_Life_Presentation and more.pptx
PPTX
How to Manage Line Discounts in Odoo 18 POS
PDF
Projecte de la porta de la classe de primer A: Mar i cel.
PPTX
Unit I — Introduction to Anatomical Terms and Organization of the Human Body
PPTX
Searching in PubMed andCochrane_Practical Presentation.pptx
PDF
IMANI Africa files RTI request seeking full disclosure on 2026 SIM registrati...
PDF
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
PPTX
The Cell & Cell Cycle-detailed structure and function of organelles.pptx
PPTX
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
PPTX
PURPOSIVE SAMPLING IN EDUCATIONAL RESEARCH RACHITHRA RK.pptx
PPTX
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
PPTX
Semester 6 unit 2 Atopic dermatitis.pptx
PPTX
Basics in Phytochemistry, Extraction, Isolation methods, Characterisation etc.
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
Mobile applications Devlopment ReTest year 2025-2026
Details of Muscular-and-Nervous-Tissues.pptx
Limpitlaw "Licensing: From Mindset to Milestones"
How to Configure Push & Pull Rule in Odoo 18 Inventory
Semester 6 UNIT 2 Dislocation of hip.pptx
How to Manage Package Reservation in Odoo 18 Inventory
AI_in_Daily_Life_Presentation and more.pptx
How to Manage Line Discounts in Odoo 18 POS
Projecte de la porta de la classe de primer A: Mar i cel.
Unit I — Introduction to Anatomical Terms and Organization of the Human Body
Searching in PubMed andCochrane_Practical Presentation.pptx
IMANI Africa files RTI request seeking full disclosure on 2026 SIM registrati...
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
The Cell & Cell Cycle-detailed structure and function of organelles.pptx
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
PURPOSIVE SAMPLING IN EDUCATIONAL RESEARCH RACHITHRA RK.pptx
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
Semester 6 unit 2 Atopic dermatitis.pptx
Basics in Phytochemistry, Extraction, Isolation methods, Characterisation etc.

JS-Slides_for_begineers_javascript-1.ppt

  • 1.
    1. JavaScript OverviewWhatis JavaScript ? JavaScript started life as LiveScript, but Netscape changed thename, possibly because of the excitement being generated byJava.to JavaScript. JavaScript made its first appearance inNetscape 2.0 in 1995 with a name LiveScript. JavaScript is a lightweight, interpreted programming languagewith object-oriented capabilities that allows you to buildinteractivity into otherwise static HTML pages. The general-purpose core of the language has been embeddedin Netscape, Internet Explorer, and other web browsers
  • 2.
    JavaScript is: JavaScriptis a lightweight, interpreted programming language Designed for creating network-centric applications Complementary to and integrated with Java Complementary to and integrated with HTML Open and cross-platform
  • 3.
     Client-side JavaScriptis the most common form of thelanguage. The script should be included in or referenced by anHTML document for the code to be interpreted by the browser. It means that a web page need no longer be static HTML, butcan include programs that interact with the user, control thebrowser, and dynamically create HTML content. The JavaScript code is executed when the user submits theform, and only if all the entries are valid they would besubmitted to the Web Server. JavaScript can be used to trap user-initiated events such asbutton clicks, link navigation, and other actions that the userexplicitly or implicitly initiates.Client-side #"https://www.slideshare.net/slideshow/js-slides_for_begineers_javascript-1-ppt/278227907#4">Advantages of #"https://www.slideshare.net/slideshow/js-slides_for_begineers_javascript-1-ppt/278227907#5">Limitations with #"https://www.slideshare.net/slideshow/js-slides_for_begineers_javascript-1-ppt/278227907#6">JavaScript Development Tools:One of JavaScript's strengths is that expensive developmenttools are not usually required. You can start with a simple texteditor such as Notepad. Since it is an interpreted language inside the context of a webbrowser, you don't even need to buy a compiler. To make our life simpler, various vendors have come up withvery nice JavaScript editing tools. Few of them are listed here:– Microsoft FrontPage– Macromedia Dreamweaver MX– Macromedia HomeSite 5– Yaldex Software Inc., Free JavaScript Editor
  • 7.
    2. JavaScript SyntaxA JavaScript consists of JavaScript statements that are placed withinthe <script>... </script> HTML tags in a web page. You can place the <script> tag containing your JavaScript anywherewithin you web page but it is preferred way to keep it within the<head> tags. The <script> tag alert the browser program to begin interpreting allthe text between these tags as a script. So simple syntax of yourJavaScript will be as follows (next slide)
  • 8.
    <script language="javascript"type="text/javascript">JavaScript code</script>Thescript tag takes two important attributes: language: This attribute specifies what scripting language you areusing. Typically, its value will be javascript. Although recent versions ofHTML (and XHTML, its successor) have phased out the use of thisattribute. type: This attribute is what is now recommended to indicate thescripting language in use and its value should be set to "text/javascript".
  • 9.
    Your First JavaScriptScript:<html><body><script language="javascript"type="text/javascript"><!--document.write("Hello World!")//--></script></body></html>
  • 10.
     JavaScript ignoresspaces, tabs, and newlines that appear inJavaScript programs. Because you can use spaces, tabs, and newlines freely in yourprogram so you are free to format and indent your programs ina neat and consistent way that makes the code easy to readand understand.Semicolons are Optional: Simple statements in JavaScript are generally followed by asemicolon character, just as they are in C, C++, and Java.JavaScript, however, allows you to omit this semicolon if yourstatements are each placed on a separate line. For example, thefollowing code could be written without semicolonsWhitespace and Line Breaks:
  • 11.
    • JavaScript isa case-sensitive language. This means thatlanguage keywords, variables, function names, and any otheridentifiers must always be typed with a consistent capitalizationof letters.• So identifiers Time, TIme and TIME will have different meaningsin JavaScript.• NOTE: Care should be taken while writing your variable andfunction names in JavaScript.Case Sensitivity:
  • 12.
    Comments in #"https://www.slideshare.net/slideshow/js-slides_for_begineers_javascript-1-ppt/278227907#13">Example 1:<script language="javascript"type="text/javascript"><!--// This is a comment. It is similar to comments in C++/** This is a multiline comment in JavaScript* It is very similar to comments in C Programming*///--></script>
  • 14.
    Example 2:<html><head><script>function displayDate(){document.getElementById("demo").innerHTML=Date();}</script></head><body><h1>MyFirst JavaScript</h1><p id="demo">This is a paragraph.</p><button type="button" onclick="displayDate()">DisplayDate</button></body></html>

[8]ページ先頭

©2009-2025 Movatter.jp