Unit 2 javascript (2) (1).ppt - UNIT 2 Javascript https\/www.javatpoint.com\/javascript-function JavaScript is the programming language of the Web 1 HTML

Unit 2 javascript (2) (1).ppt - UNIT 2 Javascript...

This preview shows page 1 - 10 out of 137 pages.

UNIT 2 Javascript
Image of page 1
JavaScript is the programming language of the Web. 1. HTML to display the content of web pages 2. CSS to specify the layout of web pages 3. JavaScript to program the behavior of web pages It means that a web page need no longer be static HTML, but can include programs that interact with the user, control the browser, and dynamically create HTML content.
Image of page 2
What is JavaScript? JavaScript is a very powerful client-side scripting language . JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript . JavaScript is also being used widely in game development and Mobile application development.
Image of page 3
An introduction to JavaScript JavaScript adds behavior to the web page where the web page is capable of responding to actions by your visitors JavaScript is most commonly used as a client side scripting language. This means that JavaScript code is written into an HTML page. We can use javascript to change the appearance of a webpage after it has been loaded.
Image of page 4
JavaScript vs. Java JavaScript is not the same as Java. Although the names are much alike, JavaScript is primarily a scripting language for use within HTML pages, while Java is a real programming language that does quite different things from JavaScript. In addition Java is much harder to learn. It was developed by Sun for use in pretty much anything that needs some computing power. JavaScript was developed by Brendan Eich in 1995, which appeared in Netscape, a popular browser of that time. .
Image of page 5
JavaScript and Java are very much unrelated. Java is a very complex programming language whereas JavaScript is only a scripting language . The syntax of JavaScript is mostly influenced by the programming language C.
Image of page 6
The main advantage of JavaScript is that all modern web browsers support JavaScript. So, you do not have to worry about whether your site visitor uses Internet Explorer, Google Chrome, Firefox or any other browser. JavaScript will be supported. Also, JavaScript runs on any operating system including Windows, Linux or Mac. Thus, JavaScript overcomes the main disadvantages of VBScript (Now deprecated) which is limited to just IE and Windows.
Image of page 7
Originally the language was called Live Script, but when it was about to the release, Java had become immensely popular. At the last possible moment Netscape changed the name of its scripting language to “JavaScript”. This was done purely for marketing reasons. Worse, Eich was ordered to "make it look like Java". This has given rise to the idea that JavaScript is a "dumbed- down" version of Java
Image of page 8
Benefits of javascript 1.It is widely supported in web browsers 2. It gives easy access to the document objects and can manipulate most of them 3. JavaScript enhances Web pages with dynamic and interactive features.
Image of page 9
Image of page 10

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture