SlideShare a Scribd company logo
JAVA SCRIPT
LOADING….
INTRODUCTIONJavaScript (aka ECMAScript) is an easy way to make your website visually attractive to clients and other viewers by adding interactivity and dynamics to HTML pages.  Explains ABOUT:                           why one would use JavaScript in their HTML website design.                          It also has links to JavaScript tools, readings and samples for                                     those who prefer ready-to-run effects.
What is java scriptJavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox Chrome, Opera, and Safari.JavaScript is a scripted language which is object oriented, event-driven, and platform independent.Each of these modern concepts in programming methodology are easier to work with in 'new' languages rather than being bolted on to older ones. And the syntax is similar to that of C and Java. This makes JavaScript a 'good' choice for learning as a first programming language.

Recommended for you

Css selectors
Css selectorsCss selectors
Css selectors

There are 6 types of CSS selectors: simple, class, generic, ID, universal, and pseudo-class selectors. Simple selectors apply styles to single elements. Class selectors allow assigning different styles to the same element on different occurrences. ID selectors define special styles for specific elements. Generic selectors define styles that can be applied to any tag. Universal selectors apply styles to all elements on a page. Pseudo-class selectors give special effects like focus and hover.

#html #css #selectors
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help

CSS stands for Cascading Style Sheets Styles define how to display HTML elements External Style Sheets can save a lot of work Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file!

#assignmenthelp#css
Java script
Java scriptJava script
Java script

JavaScript is a scripting language that can be inserted into HTML pages and used to program the behavior of web pages. It allows web pages to be dynamic and interactive. JavaScript code is placed between <script> and </script> tags and can manipulate HTML elements and write to the document. Variables, functions, conditional statements, and operators allow JavaScript code to run conditionally based on events or user input. JavaScript is case sensitive, uses semicolons, and has both local and global variables. Common data types include numbers, strings, arrays, and objects.

JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming languageJavaScript is usually embedded directly into HTML pagesJavaScript is an interpreted language (means that scripts execute without preliminary compilation) Everyone can use JavaScript without purchasing a license
Why should a webpage author use JavaScript in addition to HTML?
Java script  allows  client-side user form validationJava script provides seamless integration with user plug-insJava script allows access to some system information
Are Java and JavaScript the same?NO!Java and JavaScript are two completely different languages in both concept and design!Java (developed by Sun Microsystems) is a powerful and much more complex programming language - in the same category as C and C++.

Recommended for you

JavaScript: Events Handling
JavaScript: Events HandlingJavaScript: Events Handling
JavaScript: Events Handling

The document discusses JavaScript events and event handling. It covers the different phases of events, how to define event handlers, the event object, and how to cancel bubbling and override default browser actions. It also provides examples of handling mouse and keyboard events, such as changing an element's style on mouseover and logging key events.

eventdomjavascript
3. Java Script
3. Java Script3. Java Script
3. Java Script

The document provides an introduction to JavaScript, including its history and uses. It discusses how JavaScript is an interpreted programming language used for client-side scripting of web pages to make them dynamic and interactive. The document outlines key JavaScript concepts like variables, functions, operators, and conditional statements. It provides examples of how to write JavaScript programs and embed them in HTML files using the <script> tag.

jsjavascriptweb
Javascript essentials
Javascript essentialsJavascript essentials
Javascript essentials

Things you should know about Javascript ES5. A programming language that enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else

javascriptes5web
The Real Name is ECMAScript:JavaScript's official name is ECMAScript.ECMAScript is developed and maintained by the ECMA organization.ECMA-262 is the official JavaScript standard.The language was invented by Brendan Eich at Netscape (with Navigator 2.0), and has appeared in all Netscape and Microsoft browsers since 1996.The development of ECMA-262 started in 1996, and the first edition of was adopted by the ECMA General Assembly in June 1997.The standard was approved as an international ISO (ISO/IEC 16262) standard in 1998.The development of the standard is still in progress.
EXAMPLESPut a JavaScript into an HTML page<html><body><script type="text/javascript">document.write("Hello World!");</script></body></html> HELLO WORLD
JavaScript is Case Sensitive:Unlike HTML, JavaScript is case sensitive - therefore watch your capitalization closely when you write JavaScript statements, create or call variables, objects and functions.JavaScript Statements:A JavaScript statement is a command to a browser. The purpose of the command is to tell the browser what to do. This JavaScript statement tells the browser to write "Hello Dolly" to the web page:Note: Using semicolons makes it possible to write multiple statements on one line.
Java   Script CommentsComments can be added to explain the JavaScript, or to make the code more readable.>Single line comments start with “//”:.>JavaScript Multi-Line Comments:Multi line comments start with /* and end with */.<script type="text/javascript">// Write a headingdocument.write("<h1>This is a heading</h1>");// Write two paragraphs:document.write("<p>This is a paragraph.</p>");document.write("<p>This is another paragraph.</p>");</script> THIS IS HEADINGTHIS IS HEADINGTHIS IS HEADING

Recommended for you

Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript

JavaScript is a scripting language originally designed for web browsers but now used everywhere. It has dynamic typing and supports object-oriented, imperative, and functional programming. JavaScript was created in 1995 and standardized in 1999. It is now the most popular language on GitHub. JavaScript can be used to build interactive web pages, desktop applications, server-side applications, IoT applications, and real-time applications. The core data types in JavaScript are Number, String, Boolean, Object, Function, Array, Date, and Regular Expressions. JavaScript supports features like variables, flow control, error handling, debugging, and JSON for data exchange.

nodejavascriptprogramming
Introduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptIntroduction to JavaScript (1).ppt
Introduction to JavaScript (1).ppt

This document introduces JavaScript, explaining that it allows for interactivity on web pages by manipulating the browser and reacting to user actions. It is embedded in HTML and executes on the client side for fast interactions without a connection. JavaScript statements can include code combined with HTML tags. The document also discusses using JavaScript with HTML forms to process and display user input on the page.

Javascript
JavascriptJavascript
Javascript

This document is a presentation about JavaScript that covers what JavaScript is, where it came from, and what it can do. It introduces JavaScript as a scripting language that is easy to use and learn and runs in web browsers. The presentation explains that JavaScript is unrelated to Java but borrows some naming conventions. It provides overviews of JavaScript basics like variables, operators, and functions, as well as more advanced topics like objects, events, and DOM manipulation.

htmldommomenumdesignlab
Java variables JavaScript Variables       As with algebra, JavaScript variables are used to hold values or expressions.  A variable can have a short name, like x, or a more descriptive name, like car name.Rules for JavaScript variable names:                              Variable names are case sensitive (y and Y are two different variables)                               Variable names must begin with a letter or the underscore character Note:Because JavaScript is case-sensitive, variable names are case-sensitive.
Declaring (Creating) JavaScript Variables                Creating variables in JavaScript is most often referred to as "declaring" variables.You can declare JavaScript variables with the var statement.EXAMPLE:var x;varcarname;Assigning Values to Undeclared JavaScript Variables:If you assign values to variables that have not yet been declared, the variables will automatically be declared.These statements:x=5;carname="Volvo";
Redeclaring  JavaScript VariablesAs with algebra, you can do arithmetic operations with JavaScript variables:y=x-5;z=y+5;JavaScript Operators= is used to assign values.+ is used to add values.JavaScript Arithmetic OperatorsArithmetic operators are used to perform arithmetic between variables and/or values.Given that y=5, the table below explains the arithmetic operators:              EXAMPLES: + , -,  *,   /,  %
JavaScript Assignment OperatorsAssignment operators are used to assign values to JavaScript variables.Given that x=10 and y=5, the table below explains the assignment operators:OPERATORS=, += ,-=,   *=,  /=,  %=The + Operator Used on StringsThe + operator can also be used to add string variables or text values together.txt1="What a very";txt2="nice day";txt3=txt1+txt2;

Recommended for you

JavaScript & Dom Manipulation
JavaScript & Dom ManipulationJavaScript & Dom Manipulation
JavaScript & Dom Manipulation

JavaScript can dynamically manipulate the content, structure, and styling of an HTML document through the Document Object Model (DOM). The DOM represents an HTML document as nodes that can be accessed and modified with JavaScript. Common tasks include dynamically creating and adding elements, handling user events like clicks, and updating content by accessing DOM elements by their id or other attributes.

manipulationdomjavascript
javaScript.ppt
javaScript.pptjavaScript.ppt
javaScript.ppt

This document provides an overview of JavaScript and the DOM (Document Object Model) for a web programming course. It introduces JavaScript as a scripting language used to add interactivity to HTML pages. It describes what JavaScript can do, such as dynamically updating text and reacting to events. It also covers JavaScript syntax, variables, operators, functions, and objects. A significant portion of the document is devoted to explaining the DOM and how it allows JavaScript to access and modify HTML elements and structure programmatically.

CSS Basics
CSS BasicsCSS Basics
CSS Basics

CSS Tutorial | CSS Basics For Beginners | Css Box Model | CSS Text | CSS Font | CSS HTML | CSS Styling

csshtml-csshtml class css
Adding Strings and NumbersThe rule is:  If you add a number  and a string, the result will be a string!x=5+5;document.write(x);x="5"+"5";document.write(x);x=5+"5";document.write(x);x="5"+5;document.write(x);
Comparison Operators
Logical OperatorsLogical Operators:Logical operators are used to determine the logic between variables or values.Given that x=6 and y=3, the table below explains the logical operators:
Conditional OperatorSyntaxExample:If the variable visitor has the value of "PRES", then the variable greeting will be assigned the value "Dear President " else i t will be assigned "Dear".

Recommended for you

How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works

CSS (Cascading Style Sheets) allows separation of document content from page layout/presentation. CSS was introduced to make web page design and modification easier. CSS properties control elements like text formatting, page layout, and color/images. CSS rules cascade from broad to specific with author styles overriding browser defaults. Common selectors target elements by ID, class, tag name or relationship.

htmlcsscascading style sheets
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation

about this presentation: 1) this presentation was a quickie for non-tech employees, who wanted a basic understanding of html/css, as it related to a white-label SAAS product; 2) the back-end/front-end definitions relate to the specific application (it's inaccurate if node.js is in the picture)

jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners

Slides for presentation C002 | jQuery for beginners in Sumofyou Technologies

javascriptjquery
Conditional Statements:Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this.In JavaScript we have the following conditional statements:if statement- use this statement to execute some code only if a specified condition is true    if...else statement- use this statement to execute some code if the condition is true and another code if the condition is false if...else if....else statement- use this statement to select one of many blocks of code to be executed switch statement - use this statement to select one of many blocks of code to be executed
Syntax
The JavaScript Switch StatementUse the switch statement to select one of many blocks of code to be executed.Syntax
JavaScript Popup BoxesAlert Box:An alert box is often used if you want to make sure information comes through to the user.When an alert box pops up, the userwill have to click "OK" to procSyntaxalert("sometext");Confirm BoxA confirm box is often used if you want the user to verify or accept something.  When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed.  If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.Syntaxconfirm("sometext");

Recommended for you

Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript

Introduction to JavaScript course. The course was updated in 2014-15. Will allow you to understand what is JavaScript, what's it history and how you can use it. The set of slides "Introduction to jQuery" is a follow up - which would allow the reader to have a basic understanding across JavaScript and jQuery.

javascriptweb development
Basic JavaScript Tutorial
Basic JavaScript TutorialBasic JavaScript Tutorial
Basic JavaScript Tutorial

This article is the first part of a series of articles on using JavaScript tools. Today, JavaScript is a very powerful language that can be used to build web apps, mobile apps, and even some pc games — perhaps a bit faster than you would build them otherwise. New libraries have emerged in the web industry to address the challenges of JavaScript — libraries such as JQuery, Prototype and many others have been released. Today, a popular question asked by many is — should i learn the libraries such as jQuery or learn basic JavaScript. The truth is that the libraries help you to create faster, responsive JavaScript, but there are still times when your basic knowlege of JavaScript will be called into question. It is for this reason that I have created this eBook, to assist newbies learn JavaScript.

ecmascriptbeginnerjavascript
Javascript validating form
Javascript validating formJavascript validating form
Javascript validating form

JavaScript can be used to validate form data before submission. It checks that required fields are filled, emails and dates are valid, and text is not entered in numeric fields. Validation functions return false to stop submission if errors are found. For example, a function checks if the first name field is empty and alerts the user, returning false to prevent form submission. This function can be called on form submit using the onsubmit event.

Prompt BoxA prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. If the user clicks "OK" the box returns the input value. If the user clicks "Cancel" the box returns null.Syntaxprompt("sometext","defaultvalue");
Javascript
JavaScript FunctionsTo keep the browser from executing a script when the page loads, you can put your script into a function.A function contains code that will be executed by an event or by a call to the function.You may call a function from anywhere within a page (or even from other pages if the function is embedded in an external .js file).Functions can be defined both in the <head> and in the <body> section of a document. However, to assure that a function is read/loaded by the browser before it is called, it could be wise to put functions in the <head> section.How to Define a Functionfunction functionname(var1,var2,...,varX){some code}
EventsBy using JavaScript, we have the ability to create dynamic web pages. Events are actions that can be detected by JavaScript.Every element on a web page has certain events which can trigger a JavaScript. For example, we can use the onClick event of a button element to indicate that a function will run when a user clicks on the button. We define the events in the HTML tags.Examples of events:                        A mouse click                         A web page or an image loading Mousing over a hot spot on the web page                        Selecting an input field in an HTML                        form Submitting                        an HTML form                        A keystroke

Recommended for you

Form Validation in JavaScript
Form Validation in JavaScriptForm Validation in JavaScript
Form Validation in JavaScript

If you don't have knowledge of HTML, CSS & JavaScript than you may face some difficulties in validating a HTML form yet I will make the entire step very easy to understand by you.

javascript training institutejavascript coursejavascript course in delhi
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript

- HTML, CSS, and JavaScript are becoming the new standard for building applications and interactive experiences on the web. - Best practices include using semantic HTML, clean CSS with a focus on maintainability, and JavaScript performance optimizations. - Key techniques discussed are image sprites, progressive enhancement, and jQuery selector chaining to reduce DOM lookups.

htmlficss
Bridges to Practice
Bridges to PracticeBridges to Practice
Bridges to Practice

This document discusses serving adults with learning disabilities. It outlines that screening can help determine if further testing is needed for learning disabilities but does not diagnose, while diagnosis requires testing. It also lists four keys to serving adults with learning disabilities: promoting independence, having a teaching/learning team, using learning disability appropriate instruction, and providing instructional adaptations, accommodations, and technology.

adddyslexialearning disabilities
On Load and on UnloadThe onLoad event is often used to check the visitor's browser type and browser version, and load the proper version of the web page based on the information.Some of other eventsonFocus, onBlur and onChangeonSubmitonMouseOver and onMouseOut
Exception handlingWhen browsing Web pages on the internet, we all have seen a JavaScript alert box telling us there is a runtime error and asking "Do you wish to debug?". Error message like this may be useful for developers but not for users. When users see errors, they often leave the Web page.This chapter will teach you how to catch and handle JavaScript error messages, so you don't lose your audience.Try catch block try  {  //Run some code here  }catch(err)  {  //Handle errors here  }
Throw and throwsThe throw statement allows you to create an exception. If you use this statement together with the try...catch statement, you can control program flow and generate accurate error messages.syntaxthrow(exception)
<html><body><script type="text/javascript">var x=prompt("Enter a number between 0 and 10:","");try  {   if(x>10)    {    throw "Err1";    }  else if(x<0)    {    throw "Err2";    }  else if(isNaN(x))    {    throw "Err3";    }  }>

Recommended for you

Java script202
Java script202Java script202
Java script202

JavaScript is a scripting language that adds interactivity to HTML pages. It is embedded directly into HTML and allows dynamic updating of pages without reloading. JavaScript can react to events, read/write HTML elements, and validate data. AJAX uses JavaScript asynchronously to exchange small amounts of data with a server in the background without reloading the whole page. Common uses include Google Maps, Gmail, YouTube, and Facebook tabs.

Javascript
JavascriptJavascript
Javascript

JavaScript is a scripting language that allows adding interactivity to HTML pages. It works in all major browsers and can be used to validate form data, detect the visitor's browser, create cookies, and more. JavaScript's official name is ECMAScript and it is the most popular scripting language on the internet.

Mobile Shopping
Mobile ShoppingMobile Shopping
Mobile Shopping

With Black Friday and the holiday shopping season just around the corner, new research from Mom Central Consulting shows that nearly 30% of Moms will shop for gifts from their phone this holiday season.

market researchmobile shoppingblack friday
catch(er)  {  if(er=="Err1")    {    alert("Error! The value is too high");    }  if(er=="Err2")    {    alert("Error! The value is too low");    }  if(er=="Err3")    {    alert("Error! The value is not a number");    }  }</script></body></html
Insert Special CharactersThe backslash ( is used to insert apostrophes, new lines, quotes, and other special characters into a text string.
JavaScriptObjectsJavaScript is an Object Oriented Programming (OOP) language.An OOP language allows you to define your own objects and make your own variable types.Array Object
Javascript

Recommended for you

Form Validation
Form ValidationForm Validation
Form Validation

This document describes how to validate a form in JavaScript before submission. It includes the XHTML markup for a form with six fields, including four text fields, one dropdown, and one textarea. JavaScript functions are used to enable the submit button when a field is clicked and check that required fields are filled out, displaying an error message if not. Styling is added with CSS. On successful validation, the form will submit, with a confirmation message displayed upon completion.

validation-of-email-addresses-collected-offline
validation-of-email-addresses-collected-offlinevalidation-of-email-addresses-collected-offline
validation-of-email-addresses-collected-offline

The presentation discusses email address rules and best practices for collecting them offline in a better way, that are most error prone.

validationoffline collectionemail address collection
Java Regular Expression PART II
Java Regular Expression PART IIJava Regular Expression PART II
Java Regular Expression PART II

This presentation explores and discusses the practical and useful of Regular Expressions covering username validation, complex and strong password validation, password strength checker, email validation, and finally image file extension validation.

email validationamu rivercomplex password
String objectThe String object is used to manipulate a stored piece of text.String objects are created with new String().Syntaxvar txt = new String(string); or var txt = string;
Javascript
Date Object Properties
RegExp ObjectA regular expression is an object that describes a pattern of characters.Regular expressions are used to perform pattern-matching and "search-and-replace" functions on text.Syntaxpattern specifies the pattern of an expression

Recommended for you

JavaScript Event Loop
JavaScript Event LoopJavaScript Event Loop
JavaScript Event Loop

JavaScript Event Loop Websites: https://www.designveloper.com Visit our blog https://www.designveloper.com/blog Like Facebook page https://www.facebook.com/designveloper/ Youtube: http://bit.ly/29PTtFS

developerjavascript tutorialprogramming
Email Validation
Email ValidationEmail Validation
Email Validation

The document describes an email validation project created by five students. The project uses regular expressions and a finite state machine to check if an entered email address matches the standard syntax of a valid email address as defined in RFC 5322. It validates the local part, domain part, and that they are separated by an @ symbol. The code uses a regular expression pattern and Regex.Match method to test entered emails.

cfgfsatheory of automata
The Role Of Java Script
The Role Of Java ScriptThe Role Of Java Script
The Role Of Java Script

JavaScript can make web pages more interactive, responsive and usable. However, maintaining JavaScript code is challenging due to the lack of standards and constant browser changes. To address this, frameworks have emerged to reduce browser inconsistencies and encourage best practices like progressive enhancement, maintainability and modularity. Educators need to teach JavaScript as an integral part of web development by focusing on building quality, reusable code rather than just fixing browser issues.

javascriptwdn09edidirections
modifiers specify if a search should be global, case-sensitive, etc. ModifiersModifiers are used to perform case-insensitive and global searches:
ADVANCED JAVA SCRIPT OBJECTS
The Navigator ObjectThe Navigator object contains all information about the visitor's browser. We are going to look at two properties of the Navigator object:appName - holds the name of the browser
appVersion - holds, among other things, the version of the browser Example:<html><body><script type="text/javascript">var browser=navigator.appName;varb_version=navigator.appVersion;var version=parseFloat(b_version);document.write("Browser name: "+ browser);document.write("<br />");document.write("Browser version: "+ version);</script></body></html> OUTPUT:Browser name:Microsoft Internet ExplorerBrowser version:4

Recommended for you

How Salesforce.com uses Hadoop
How Salesforce.com uses HadoopHow Salesforce.com uses Hadoop
How Salesforce.com uses Hadoop

Video: http://www.youtube.com/watch?v=BT8WvQMMaV0 Hadoop is the technology of choice for processing large data sets. At salesforce.com, we service internal and product big data use cases using a combination of Hadoop, Java MapReduce, Pig, Force.com, and machine learning algorithms. In this webinar, we will discuss an internal use case and a product use case: Product Metrics: Internally, we measure feature usage using a combination of Hadoop, Pig, and the Force.com platform (Custom Objects and Analytics). Community-Based Recommendations: In Chatter, our most successful people and file recommendations are built on a collaborative filtering algorithm that is implemented on Hadoop using Java MapReduce.

salesforceapache hadoophadoop
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms

This document provides information on using tables in HTML documents. It discusses using the <table>, <tr>, <th>, and <td> tags to define the table structure and cells. It also covers various table attributes like border, width, alignment, and cell spacing properties. The document then discusses more advanced table features such as colspan, rowspan to merge cells, and using the <caption> tag to add a title to the table.

framestablesforms
JavaScript Operators
JavaScript OperatorsJavaScript Operators
JavaScript Operators

This is the slide stack to the two JavaScript Operators YouTube videos at https://www.youtube.com/watch?v=4sF-9RqDxEA and https://www.youtube.com/watch?v=lRijlc3tsw0

javascript programming language
COOKIESA cookie is a variable that is stored on the visitor's computer. Each time the same computer requests a page with a browser,   it will send the cookie too.With JavaScript, you can both create and retrieve cookie values.A cookie is often used to identify a user.Examples of cookies:Name cookie - The first time a visitor arrives to your web page, he or she must fill in her/his name. The name is then stored in a cookie. Next time the visitor arrives at your page, he or she could get a welcome message like "Welcome John Doe!" The name is retrieved from the stored cookie
Password cookie - The first time a visitor arrives to your web page, he or she must fill in a password. The password is then stored in a cookie. Next time the visitor arrives at your page, the password is retrieved from the cookie
Date cookie - The first time a visitor arrives to your web page, the current date is stored in a cookie. Next time the visitor arrives at your page, he or she could get a message like "Your last visit was on Tuesday August 11, 2005!" The date is retrieved from the stored cookie                                    Create and Store a CookieIn this example we will create a cookie that stores the name of a visitor. The first time a visitor arrives to the web page, he or she will be asked to  fill in her/his name. The name is then stored in a cookie. The next time the visitor arrives at the same page, he or she will get welcome message.First, we create a function that stores the name of the visitor in a cookie                    VARIABLESThe parameters of the function above hold the name of the cookie, the value of the cookie, and the number of days until the cookie expires.In the function above we first convert the number of days to a valid date, then we add the number of days until the cookie should expire. After that we store the cookie name, cookie value and the expiration date in the document.cookie object.
JavaScript Form ValidationJavaScript can be used to validate data in HTML forms before sending off the content to a server.Javascript  perform the following checks typically:            whether required fields are left empty

Recommended for you

Introdution to HTML 5
Introdution to HTML 5Introdution to HTML 5
Introdution to HTML 5

HTML5 is the next version of HTML that is still being developed by the World Wide Web Consortium. It introduces several new features such as native audio and video playback, canvas element for graphics, and semantic elements like header, nav and footer. HTML5 also improves support for forms, introduces new APIs for building web applications, and specifies stricter parsing rules to improve error handling compared to previous versions of HTML. Some popular websites that use HTML5 features include YouTube and Google Wave.

html5web design and developmentanveshantechnologies
Html 5
Html 5Html 5
Html 5

HTML5 is the newest version of HTML that adds new semantic elements, built-in audio and video playback, and features like the canvas element for drawing graphics. It simplifies the syntax of earlier HTML versions and aims to make web pages more semantic, reduce the need for plugins, and work across devices. New elements in HTML5 include <header>, <footer>, <nav>, <video>, <audio>, <canvas>, and new form input types. It is still a work in progress with partial browser support.

html 5
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5

This document provides an overview of HTML5, including what it is, new elements and attributes, forms, media capabilities, and APIs. Key points include HTML5 simplifying the DOCTYPE, making small semantic changes to existing elements, removing obsolete elements, adding new semantic elements like article, section, header, footer, and aside, and introducing new form input types. It also covers new media elements like video and audio, the canvas element, local storage, and geolocation.

web devhtml5
            whether E-mail id entered by user is valid or not
            whether Date entered is valid or  not
            whether  user has entered text in numerical formatExample:<html><head><script type="text/javascript">function validate_required(field,alerttxt){with (field)  {  if (value==null||value=="")    {    alert(alerttxt);return false;    }  else    {    return true;    }  }}function validate_form(thisform){
with (thisform)  {  if (validate_required(email,"Email must be filled out!")==false)  {email.focus();return false;}  }}</script></head><body><form action="submit.htm" onsubmit="return validate_form(this)" method="post">Email: <input type="text" name="email" size="30"><input type="submit" value="Submit"></form></body></html>

Recommended for you

Bpr
BprBpr
Bpr

BPR seeks to fundamentally rethink and redesign business processes to achieve dramatic improvements in key areas like cost, quality, and speed. It differs from process simplification or continuous improvement in aiming for radical rather than incremental change. Successful BPR requires selecting the right process, appointing a project team, understanding the current process, developing a vision for improvement, creating an action plan, and executing that plan while overcoming typical challenges. Information technology can both help implement new processes and drive further innovation.

Javascript survival for CSBN Sophomores
Javascript survival for CSBN SophomoresJavascript survival for CSBN Sophomores
Javascript survival for CSBN Sophomores

This is our guide to javascript programming for the second year students of CSBN. Please download this as your reference for notes, as well as coverage for exam and quiz.

javascript program
Introduction to Java Scripting
Introduction to Java ScriptingIntroduction to Java Scripting
Introduction to Java Scripting

The document provides an introduction to JavaScript, covering topics like what JavaScript is, where scripts can be placed, syntax and rules, blocks, comments, and variables. It includes examples of JavaScript code and assignments for students to practice basic JavaScript concepts like writing to the document, using blocks, comments, and variables.

web designjava scriptingprogramming
JavaScript ObjectsCreating Your Own ObjectsThere are different ways to create a new object:1. Create a direct instance of an objectThe following code creates an instance of an object and adds four properties to it:personObj=new Object();personObj.firstname="John";personObj.lastname="Doe";personObj.age=50;personObj.eyecolor="blue";2. Create a template of an objectThe template defines the structure of an object:function person(firstname,lastname,age,eyecolor){this.firstname=firstname;this.lastname=lastname;this.age=age;this.eyecolor=eyecolor;}With the help of template ,we can create new instances of object like this:
EXAMPLEmyFather=new person("John","Doe",50,"blue");myMother=new person("Sally","Rally",48,"green");

More Related Content

What's hot

Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to Javascript
Walid Ashraf
 
JavaScript - An Introduction
JavaScript - An IntroductionJavaScript - An Introduction
JavaScript - An Introduction
Manvendra Singh
 
Java script
Java scriptJava script
Java script
Sadeek Mohammed
 
Css selectors
Css selectorsCss selectors
Css selectors
Parth Trivedi
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
casestudyhelp
 
Java script
Java scriptJava script
Java script
Shyam Khant
 
JavaScript: Events Handling
JavaScript: Events HandlingJavaScript: Events Handling
JavaScript: Events Handling
Yuriy Bezgachnyuk
 
3. Java Script
3. Java Script3. Java Script
3. Java Script
Jalpesh Vasa
 
Javascript essentials
Javascript essentialsJavascript essentials
Javascript essentials
Bedis ElAchèche
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
Bala Narayanan
 
Introduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptIntroduction to JavaScript (1).ppt
Introduction to JavaScript (1).ppt
MuhammadRehan856177
 
Javascript
JavascriptJavascript
JavaScript & Dom Manipulation
JavaScript & Dom ManipulationJavaScript & Dom Manipulation
JavaScript & Dom Manipulation
Mohammed Arif
 
javaScript.ppt
javaScript.pptjavaScript.ppt
javaScript.ppt
sentayehu
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
Arulmurugan Rajaraman
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 
Basic JavaScript Tutorial
Basic JavaScript TutorialBasic JavaScript Tutorial
Basic JavaScript Tutorial
DHTMLExtreme
 

What's hot (20)

Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to Javascript
 
JavaScript - An Introduction
JavaScript - An IntroductionJavaScript - An Introduction
JavaScript - An Introduction
 
Java script
Java scriptJava script
Java script
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Java script
Java scriptJava script
Java script
 
JavaScript: Events Handling
JavaScript: Events HandlingJavaScript: Events Handling
JavaScript: Events Handling
 
3. Java Script
3. Java Script3. Java Script
3. Java Script
 
Javascript essentials
Javascript essentialsJavascript essentials
Javascript essentials
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 
Introduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptIntroduction to JavaScript (1).ppt
Introduction to JavaScript (1).ppt
 
Javascript
JavascriptJavascript
Javascript
 
JavaScript & Dom Manipulation
JavaScript & Dom ManipulationJavaScript & Dom Manipulation
JavaScript & Dom Manipulation
 
javaScript.ppt
javaScript.pptjavaScript.ppt
javaScript.ppt
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Basic JavaScript Tutorial
Basic JavaScript TutorialBasic JavaScript Tutorial
Basic JavaScript Tutorial
 

Viewers also liked

Javascript validating form
Javascript validating formJavascript validating form
Javascript validating form
Jesus Obenita Jr.
 
Form Validation in JavaScript
Form Validation in JavaScriptForm Validation in JavaScript
Form Validation in JavaScript
Ravi Bhadauria
 
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript
David Lindkvist
 
Bridges to Practice
Bridges to PracticeBridges to Practice
Bridges to Practice
Ms_Duffy
 
Java script202
Java script202Java script202
Java script202
Wasiq Zia
 
Javascript
JavascriptJavascript
Javascript
Sushma M
 
Mobile Shopping
Mobile ShoppingMobile Shopping
Mobile Shopping
Mom Central Consulting
 
Form Validation
Form ValidationForm Validation
Form Validation
Graeme Smith
 
validation-of-email-addresses-collected-offline
validation-of-email-addresses-collected-offlinevalidation-of-email-addresses-collected-offline
validation-of-email-addresses-collected-offline
Kenscio Digital Marketing Pvt Ltd
 
Java Regular Expression PART II
Java Regular Expression PART IIJava Regular Expression PART II
Java Regular Expression PART II
Abdul Rahman Sherzad
 
JavaScript Event Loop
JavaScript Event LoopJavaScript Event Loop
JavaScript Event Loop
Designveloper
 
Email Validation
Email ValidationEmail Validation
Email Validation
Hashim Lokasher
 
The Role Of Java Script
The Role Of Java ScriptThe Role Of Java Script
The Role Of Java Script
Christian Heilmann
 
How Salesforce.com uses Hadoop
How Salesforce.com uses HadoopHow Salesforce.com uses Hadoop
How Salesforce.com uses Hadoop
Narayan Bharadwaj
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
nobel mujuji
 
JavaScript Operators
JavaScript OperatorsJavaScript Operators
JavaScript Operators
Charles Russell
 
Introdution to HTML 5
Introdution to HTML 5Introdution to HTML 5
Introdution to HTML 5
onkar_bhosle
 
Html 5
Html 5Html 5
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
Steven Chipman
 
Bpr
BprBpr

Viewers also liked (20)

Javascript validating form
Javascript validating formJavascript validating form
Javascript validating form
 
Form Validation in JavaScript
Form Validation in JavaScriptForm Validation in JavaScript
Form Validation in JavaScript
 
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript
 
Bridges to Practice
Bridges to PracticeBridges to Practice
Bridges to Practice
 
Java script202
Java script202Java script202
Java script202
 
Javascript
JavascriptJavascript
Javascript
 
Mobile Shopping
Mobile ShoppingMobile Shopping
Mobile Shopping
 
Form Validation
Form ValidationForm Validation
Form Validation
 
validation-of-email-addresses-collected-offline
validation-of-email-addresses-collected-offlinevalidation-of-email-addresses-collected-offline
validation-of-email-addresses-collected-offline
 
Java Regular Expression PART II
Java Regular Expression PART IIJava Regular Expression PART II
Java Regular Expression PART II
 
JavaScript Event Loop
JavaScript Event LoopJavaScript Event Loop
JavaScript Event Loop
 
Email Validation
Email ValidationEmail Validation
Email Validation
 
The Role Of Java Script
The Role Of Java ScriptThe Role Of Java Script
The Role Of Java Script
 
How Salesforce.com uses Hadoop
How Salesforce.com uses HadoopHow Salesforce.com uses Hadoop
How Salesforce.com uses Hadoop
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
 
JavaScript Operators
JavaScript OperatorsJavaScript Operators
JavaScript Operators
 
Introdution to HTML 5
Introdution to HTML 5Introdution to HTML 5
Introdution to HTML 5
 
Html 5
Html 5Html 5
Html 5
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
 
Bpr
BprBpr
Bpr
 

Similar to Javascript

Javascript survival for CSBN Sophomores
Javascript survival for CSBN SophomoresJavascript survival for CSBN Sophomores
Javascript survival for CSBN Sophomores
Andy de Vera
 
Introduction to Java Scripting
Introduction to Java ScriptingIntroduction to Java Scripting
Introduction to Java Scripting
fantasticdigitaltools
 
8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation
JohnLagman3
 
Basic Java script handouts for students
Basic Java script handouts for students Basic Java script handouts for students
Basic Java script handouts for students
shafiq sangi
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
ambuj pathak
 
Basics java scripts
Basics java scriptsBasics java scripts
Basics java scripts
ch samaram
 
Javascript tutorial
Javascript tutorialJavascript tutorial
Javascript tutorial
Abhishek Kesharwani
 
Java script Basic
Java script BasicJava script Basic
Java script Basic
Jaya Kumari
 
JavaScript Core fundamentals - Learn JavaScript Here
JavaScript Core fundamentals - Learn JavaScript HereJavaScript Core fundamentals - Learn JavaScript Here
JavaScript Core fundamentals - Learn JavaScript Here
Laurence Svekis ✔
 
Introduction to java script
Introduction to java scriptIntroduction to java script
Introduction to java script
nanjil1984
 
Session vii(java scriptbasics)
Session vii(java scriptbasics)Session vii(java scriptbasics)
Session vii(java scriptbasics)
Shrijan Tiwari
 
Unit 4 Java script.pptx
Unit 4 Java script.pptxUnit 4 Java script.pptx
Unit 4 Java script.pptx
Gangesh8
 
JavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptxJavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptx
rish15r890
 
Java scipt
Java sciptJava scipt
Unit 2.4
Unit 2.4Unit 2.4
JAVA SCRIPT
JAVA SCRIPTJAVA SCRIPT
JAVA SCRIPT
Go4Guru
 
JAVA SCRIPT
JAVA SCRIPTJAVA SCRIPT
JAVA SCRIPT
Mohammed Hussein
 
Web programming
Web programmingWeb programming
Web programming
Leo Mark Villar
 
JavaScript - Getting Started.pptx
JavaScript - Getting Started.pptxJavaScript - Getting Started.pptx
JavaScript - Getting Started.pptx
JonnJorellPunto
 
Unit 2.4
Unit 2.4Unit 2.4

Similar to Javascript (20)

Javascript survival for CSBN Sophomores
Javascript survival for CSBN SophomoresJavascript survival for CSBN Sophomores
Javascript survival for CSBN Sophomores
 
Introduction to Java Scripting
Introduction to Java ScriptingIntroduction to Java Scripting
Introduction to Java Scripting
 
8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation
 
Basic Java script handouts for students
Basic Java script handouts for students Basic Java script handouts for students
Basic Java script handouts for students
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Basics java scripts
Basics java scriptsBasics java scripts
Basics java scripts
 
Javascript tutorial
Javascript tutorialJavascript tutorial
Javascript tutorial
 
Java script Basic
Java script BasicJava script Basic
Java script Basic
 
JavaScript Core fundamentals - Learn JavaScript Here
JavaScript Core fundamentals - Learn JavaScript HereJavaScript Core fundamentals - Learn JavaScript Here
JavaScript Core fundamentals - Learn JavaScript Here
 
Introduction to java script
Introduction to java scriptIntroduction to java script
Introduction to java script
 
Session vii(java scriptbasics)
Session vii(java scriptbasics)Session vii(java scriptbasics)
Session vii(java scriptbasics)
 
Unit 4 Java script.pptx
Unit 4 Java script.pptxUnit 4 Java script.pptx
Unit 4 Java script.pptx
 
JavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptxJavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptx
 
Java scipt
Java sciptJava scipt
Java scipt
 
Unit 2.4
Unit 2.4Unit 2.4
Unit 2.4
 
JAVA SCRIPT
JAVA SCRIPTJAVA SCRIPT
JAVA SCRIPT
 
JAVA SCRIPT
JAVA SCRIPTJAVA SCRIPT
JAVA SCRIPT
 
Web programming
Web programmingWeb programming
Web programming
 
JavaScript - Getting Started.pptx
JavaScript - Getting Started.pptxJavaScript - Getting Started.pptx
JavaScript - Getting Started.pptx
 
Unit 2.4
Unit 2.4Unit 2.4
Unit 2.4
 

More from Nagarajan

Chapter3
Chapter3Chapter3
Chapter3
Nagarajan
 
Chapter2
Chapter2Chapter2
Chapter2
Nagarajan
 
Chapter1
Chapter1Chapter1
Chapter1
Nagarajan
 
Minimax
MinimaxMinimax
Minimax
Nagarajan
 
I/O System
I/O SystemI/O System
I/O System
Nagarajan
 
Scheduling algorithm (chammu)
Scheduling algorithm (chammu)Scheduling algorithm (chammu)
Scheduling algorithm (chammu)
Nagarajan
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga)
Nagarajan
 
Process synchronization(deepa)
Process synchronization(deepa)Process synchronization(deepa)
Process synchronization(deepa)
Nagarajan
 
Posix threads(asha)
Posix threads(asha)Posix threads(asha)
Posix threads(asha)
Nagarajan
 
Monitor(karthika)
Monitor(karthika)Monitor(karthika)
Monitor(karthika)
Nagarajan
 
Cpu scheduling(suresh)
Cpu scheduling(suresh)Cpu scheduling(suresh)
Cpu scheduling(suresh)
Nagarajan
 
Backward chaining(bala,karthi,rajesh)
Backward chaining(bala,karthi,rajesh)Backward chaining(bala,karthi,rajesh)
Backward chaining(bala,karthi,rajesh)
Nagarajan
 
Inferno
InfernoInferno
Inferno
Nagarajan
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural network
Nagarajan
 
Perceptron
PerceptronPerceptron
Perceptron
Nagarajan
 
Back propagation
Back propagationBack propagation
Back propagation
Nagarajan
 
Ms access
Ms accessMs access
Ms access
Nagarajan
 
Adaline madaline
Adaline madalineAdaline madaline
Adaline madaline
Nagarajan
 

More from Nagarajan (18)

Chapter3
Chapter3Chapter3
Chapter3
 
Chapter2
Chapter2Chapter2
Chapter2
 
Chapter1
Chapter1Chapter1
Chapter1
 
Minimax
MinimaxMinimax
Minimax
 
I/O System
I/O SystemI/O System
I/O System
 
Scheduling algorithm (chammu)
Scheduling algorithm (chammu)Scheduling algorithm (chammu)
Scheduling algorithm (chammu)
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga)
 
Process synchronization(deepa)
Process synchronization(deepa)Process synchronization(deepa)
Process synchronization(deepa)
 
Posix threads(asha)
Posix threads(asha)Posix threads(asha)
Posix threads(asha)
 
Monitor(karthika)
Monitor(karthika)Monitor(karthika)
Monitor(karthika)
 
Cpu scheduling(suresh)
Cpu scheduling(suresh)Cpu scheduling(suresh)
Cpu scheduling(suresh)
 
Backward chaining(bala,karthi,rajesh)
Backward chaining(bala,karthi,rajesh)Backward chaining(bala,karthi,rajesh)
Backward chaining(bala,karthi,rajesh)
 
Inferno
InfernoInferno
Inferno
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural network
 
Perceptron
PerceptronPerceptron
Perceptron
 
Back propagation
Back propagationBack propagation
Back propagation
 
Ms access
Ms accessMs access
Ms access
 
Adaline madaline
Adaline madalineAdaline madaline
Adaline madaline
 

Recently uploaded

ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUMENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
HappieMontevirgenCas
 
NAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource BookNAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource Book
lakitawilson
 
Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?
Rakesh Jalan
 
National Learning Camp( Reading Intervention for grade1)
National Learning Camp( Reading Intervention for grade1)National Learning Camp( Reading Intervention for grade1)
National Learning Camp( Reading Intervention for grade1)
SaadaGrijaldo1
 
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
thanhluan21
 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
marianell3076
 
AI_in_HR_Presentation Part 1 2024 0703.pdf
AI_in_HR_Presentation Part 1 2024 0703.pdfAI_in_HR_Presentation Part 1 2024 0703.pdf
AI_in_HR_Presentation Part 1 2024 0703.pdf
SrimanigandanMadurai
 
Delegation Inheritance in Odoo 17 and Its Use Cases
Delegation Inheritance in Odoo 17 and Its Use CasesDelegation Inheritance in Odoo 17 and Its Use Cases
Delegation Inheritance in Odoo 17 and Its Use Cases
Celine George
 
How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
Celine George
 
How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17
Celine George
 
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Murugan Solaiyappan
 
How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17
Celine George
 
Howe Writing Center - Orientation Summer 2024
Howe Writing Center - Orientation Summer 2024Howe Writing Center - Orientation Summer 2024
Howe Writing Center - Orientation Summer 2024
Elizabeth Walsh
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Celine George
 
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptxBRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
kambal1234567890
 
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptxChapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Brajeswar Paul
 
How to Configure Time Off Types in Odoo 17
How to Configure Time Off Types in Odoo 17How to Configure Time Off Types in Odoo 17
How to Configure Time Off Types in Odoo 17
Celine George
 
Ardra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Ardra Nakshatra (आर्द्रा): Understanding its Effects and RemediesArdra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Ardra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Astro Pathshala
 
matatag curriculum education for Kindergarten
matatag curriculum education for Kindergartenmatatag curriculum education for Kindergarten
matatag curriculum education for Kindergarten
SarahAlie1
 
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
PECB
 

Recently uploaded (20)

ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUMENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
 
NAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource BookNAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource Book
 
Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?
 
National Learning Camp( Reading Intervention for grade1)
National Learning Camp( Reading Intervention for grade1)National Learning Camp( Reading Intervention for grade1)
National Learning Camp( Reading Intervention for grade1)
 
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
AI_in_HR_Presentation Part 1 2024 0703.pdf
AI_in_HR_Presentation Part 1 2024 0703.pdfAI_in_HR_Presentation Part 1 2024 0703.pdf
AI_in_HR_Presentation Part 1 2024 0703.pdf
 
Delegation Inheritance in Odoo 17 and Its Use Cases
Delegation Inheritance in Odoo 17 and Its Use CasesDelegation Inheritance in Odoo 17 and Its Use Cases
Delegation Inheritance in Odoo 17 and Its Use Cases
 
How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
 
How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17
 
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
 
How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17
 
Howe Writing Center - Orientation Summer 2024
Howe Writing Center - Orientation Summer 2024Howe Writing Center - Orientation Summer 2024
Howe Writing Center - Orientation Summer 2024
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
 
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptxBRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
 
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptxChapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
 
How to Configure Time Off Types in Odoo 17
How to Configure Time Off Types in Odoo 17How to Configure Time Off Types in Odoo 17
How to Configure Time Off Types in Odoo 17
 
Ardra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Ardra Nakshatra (आर्द्रा): Understanding its Effects and RemediesArdra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Ardra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
 
matatag curriculum education for Kindergarten
matatag curriculum education for Kindergartenmatatag curriculum education for Kindergarten
matatag curriculum education for Kindergarten
 
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
 

Javascript

  • 3. INTRODUCTIONJavaScript (aka ECMAScript) is an easy way to make your website visually attractive to clients and other viewers by adding interactivity and dynamics to HTML pages. Explains ABOUT: why one would use JavaScript in their HTML website design. It also has links to JavaScript tools, readings and samples for those who prefer ready-to-run effects.
  • 4. What is java scriptJavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox Chrome, Opera, and Safari.JavaScript is a scripted language which is object oriented, event-driven, and platform independent.Each of these modern concepts in programming methodology are easier to work with in 'new' languages rather than being bolted on to older ones. And the syntax is similar to that of C and Java. This makes JavaScript a 'good' choice for learning as a first programming language.
  • 5. JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming languageJavaScript is usually embedded directly into HTML pagesJavaScript is an interpreted language (means that scripts execute without preliminary compilation) Everyone can use JavaScript without purchasing a license
  • 6. Why should a webpage author use JavaScript in addition to HTML?
  • 7. Java script allows client-side user form validationJava script provides seamless integration with user plug-insJava script allows access to some system information
  • 8. Are Java and JavaScript the same?NO!Java and JavaScript are two completely different languages in both concept and design!Java (developed by Sun Microsystems) is a powerful and much more complex programming language - in the same category as C and C++.
  • 9. The Real Name is ECMAScript:JavaScript's official name is ECMAScript.ECMAScript is developed and maintained by the ECMA organization.ECMA-262 is the official JavaScript standard.The language was invented by Brendan Eich at Netscape (with Navigator 2.0), and has appeared in all Netscape and Microsoft browsers since 1996.The development of ECMA-262 started in 1996, and the first edition of was adopted by the ECMA General Assembly in June 1997.The standard was approved as an international ISO (ISO/IEC 16262) standard in 1998.The development of the standard is still in progress.
  • 10. EXAMPLESPut a JavaScript into an HTML page<html><body><script type="text/javascript">document.write("Hello World!");</script></body></html> HELLO WORLD
  • 11. JavaScript is Case Sensitive:Unlike HTML, JavaScript is case sensitive - therefore watch your capitalization closely when you write JavaScript statements, create or call variables, objects and functions.JavaScript Statements:A JavaScript statement is a command to a browser. The purpose of the command is to tell the browser what to do. This JavaScript statement tells the browser to write "Hello Dolly" to the web page:Note: Using semicolons makes it possible to write multiple statements on one line.
  • 12. Java Script CommentsComments can be added to explain the JavaScript, or to make the code more readable.>Single line comments start with “//”:.>JavaScript Multi-Line Comments:Multi line comments start with /* and end with */.<script type="text/javascript">// Write a headingdocument.write("<h1>This is a heading</h1>");// Write two paragraphs:document.write("<p>This is a paragraph.</p>");document.write("<p>This is another paragraph.</p>");</script> THIS IS HEADINGTHIS IS HEADINGTHIS IS HEADING
  • 13. Java variables JavaScript Variables As with algebra, JavaScript variables are used to hold values or expressions. A variable can have a short name, like x, or a more descriptive name, like car name.Rules for JavaScript variable names: Variable names are case sensitive (y and Y are two different variables) Variable names must begin with a letter or the underscore character Note:Because JavaScript is case-sensitive, variable names are case-sensitive.
  • 14. Declaring (Creating) JavaScript Variables Creating variables in JavaScript is most often referred to as "declaring" variables.You can declare JavaScript variables with the var statement.EXAMPLE:var x;varcarname;Assigning Values to Undeclared JavaScript Variables:If you assign values to variables that have not yet been declared, the variables will automatically be declared.These statements:x=5;carname="Volvo";
  • 15. Redeclaring JavaScript VariablesAs with algebra, you can do arithmetic operations with JavaScript variables:y=x-5;z=y+5;JavaScript Operators= is used to assign values.+ is used to add values.JavaScript Arithmetic OperatorsArithmetic operators are used to perform arithmetic between variables and/or values.Given that y=5, the table below explains the arithmetic operators: EXAMPLES: + , -, *, /, %
  • 16. JavaScript Assignment OperatorsAssignment operators are used to assign values to JavaScript variables.Given that x=10 and y=5, the table below explains the assignment operators:OPERATORS=, += ,-=, *=, /=, %=The + Operator Used on StringsThe + operator can also be used to add string variables or text values together.txt1="What a very";txt2="nice day";txt3=txt1+txt2;
  • 17. Adding Strings and NumbersThe rule is: If you add a number and a string, the result will be a string!x=5+5;document.write(x);x="5"+"5";document.write(x);x=5+"5";document.write(x);x="5"+5;document.write(x);
  • 19. Logical OperatorsLogical Operators:Logical operators are used to determine the logic between variables or values.Given that x=6 and y=3, the table below explains the logical operators:
  • 20. Conditional OperatorSyntaxExample:If the variable visitor has the value of "PRES", then the variable greeting will be assigned the value "Dear President " else i t will be assigned "Dear".
  • 21. Conditional Statements:Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this.In JavaScript we have the following conditional statements:if statement- use this statement to execute some code only if a specified condition is true if...else statement- use this statement to execute some code if the condition is true and another code if the condition is false if...else if....else statement- use this statement to select one of many blocks of code to be executed switch statement - use this statement to select one of many blocks of code to be executed
  • 23. The JavaScript Switch StatementUse the switch statement to select one of many blocks of code to be executed.Syntax
  • 24. JavaScript Popup BoxesAlert Box:An alert box is often used if you want to make sure information comes through to the user.When an alert box pops up, the userwill have to click "OK" to procSyntaxalert("sometext");Confirm BoxA confirm box is often used if you want the user to verify or accept something. When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed. If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.Syntaxconfirm("sometext");
  • 25. Prompt BoxA prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. If the user clicks "OK" the box returns the input value. If the user clicks "Cancel" the box returns null.Syntaxprompt("sometext","defaultvalue");
  • 27. JavaScript FunctionsTo keep the browser from executing a script when the page loads, you can put your script into a function.A function contains code that will be executed by an event or by a call to the function.You may call a function from anywhere within a page (or even from other pages if the function is embedded in an external .js file).Functions can be defined both in the <head> and in the <body> section of a document. However, to assure that a function is read/loaded by the browser before it is called, it could be wise to put functions in the <head> section.How to Define a Functionfunction functionname(var1,var2,...,varX){some code}
  • 28. EventsBy using JavaScript, we have the ability to create dynamic web pages. Events are actions that can be detected by JavaScript.Every element on a web page has certain events which can trigger a JavaScript. For example, we can use the onClick event of a button element to indicate that a function will run when a user clicks on the button. We define the events in the HTML tags.Examples of events: A mouse click A web page or an image loading Mousing over a hot spot on the web page Selecting an input field in an HTML form Submitting an HTML form A keystroke
  • 29. On Load and on UnloadThe onLoad event is often used to check the visitor's browser type and browser version, and load the proper version of the web page based on the information.Some of other eventsonFocus, onBlur and onChangeonSubmitonMouseOver and onMouseOut
  • 30. Exception handlingWhen browsing Web pages on the internet, we all have seen a JavaScript alert box telling us there is a runtime error and asking "Do you wish to debug?". Error message like this may be useful for developers but not for users. When users see errors, they often leave the Web page.This chapter will teach you how to catch and handle JavaScript error messages, so you don't lose your audience.Try catch block try  {  //Run some code here  }catch(err)  {  //Handle errors here  }
  • 31. Throw and throwsThe throw statement allows you to create an exception. If you use this statement together with the try...catch statement, you can control program flow and generate accurate error messages.syntaxthrow(exception)
  • 32. <html><body><script type="text/javascript">var x=prompt("Enter a number between 0 and 10:","");try  {   if(x>10)    {    throw "Err1";    }  else if(x<0)    {    throw "Err2";    }  else if(isNaN(x))    {    throw "Err3";    }  }>
  • 33. catch(er)  {  if(er=="Err1")    {    alert("Error! The value is too high");    }  if(er=="Err2")    {    alert("Error! The value is too low");    }  if(er=="Err3")    {    alert("Error! The value is not a number");    }  }</script></body></html
  • 34. Insert Special CharactersThe backslash ( is used to insert apostrophes, new lines, quotes, and other special characters into a text string.
  • 35. JavaScriptObjectsJavaScript is an Object Oriented Programming (OOP) language.An OOP language allows you to define your own objects and make your own variable types.Array Object
  • 37. String objectThe String object is used to manipulate a stored piece of text.String objects are created with new String().Syntaxvar txt = new String(string); or var txt = string;
  • 40. RegExp ObjectA regular expression is an object that describes a pattern of characters.Regular expressions are used to perform pattern-matching and "search-and-replace" functions on text.Syntaxpattern specifies the pattern of an expression
  • 41. modifiers specify if a search should be global, case-sensitive, etc. ModifiersModifiers are used to perform case-insensitive and global searches:
  • 43. The Navigator ObjectThe Navigator object contains all information about the visitor's browser. We are going to look at two properties of the Navigator object:appName - holds the name of the browser
  • 44. appVersion - holds, among other things, the version of the browser Example:<html><body><script type="text/javascript">var browser=navigator.appName;varb_version=navigator.appVersion;var version=parseFloat(b_version);document.write("Browser name: "+ browser);document.write("<br />");document.write("Browser version: "+ version);</script></body></html> OUTPUT:Browser name:Microsoft Internet ExplorerBrowser version:4
  • 45. COOKIESA cookie is a variable that is stored on the visitor's computer. Each time the same computer requests a page with a browser, it will send the cookie too.With JavaScript, you can both create and retrieve cookie values.A cookie is often used to identify a user.Examples of cookies:Name cookie - The first time a visitor arrives to your web page, he or she must fill in her/his name. The name is then stored in a cookie. Next time the visitor arrives at your page, he or she could get a welcome message like "Welcome John Doe!" The name is retrieved from the stored cookie
  • 46. Password cookie - The first time a visitor arrives to your web page, he or she must fill in a password. The password is then stored in a cookie. Next time the visitor arrives at your page, the password is retrieved from the cookie
  • 47. Date cookie - The first time a visitor arrives to your web page, the current date is stored in a cookie. Next time the visitor arrives at your page, he or she could get a message like "Your last visit was on Tuesday August 11, 2005!" The date is retrieved from the stored cookie Create and Store a CookieIn this example we will create a cookie that stores the name of a visitor. The first time a visitor arrives to the web page, he or she will be asked to  fill in her/his name. The name is then stored in a cookie. The next time the visitor arrives at the same page, he or she will get welcome message.First, we create a function that stores the name of the visitor in a cookie VARIABLESThe parameters of the function above hold the name of the cookie, the value of the cookie, and the number of days until the cookie expires.In the function above we first convert the number of days to a valid date, then we add the number of days until the cookie should expire. After that we store the cookie name, cookie value and the expiration date in the document.cookie object.
  • 48. JavaScript Form ValidationJavaScript can be used to validate data in HTML forms before sending off the content to a server.Javascript perform the following checks typically: whether required fields are left empty
  • 49. whether E-mail id entered by user is valid or not
  • 50. whether Date entered is valid or not
  • 51. whether user has entered text in numerical formatExample:<html><head><script type="text/javascript">function validate_required(field,alerttxt){with (field)  {  if (value==null||value=="")    {    alert(alerttxt);return false;    }  else    {    return true;    }  }}function validate_form(thisform){
  • 52. with (thisform)  {  if (validate_required(email,"Email must be filled out!")==false)  {email.focus();return false;}  }}</script></head><body><form action="submit.htm" onsubmit="return validate_form(this)" method="post">Email: <input type="text" name="email" size="30"><input type="submit" value="Submit"></form></body></html>
  • 53. JavaScript ObjectsCreating Your Own ObjectsThere are different ways to create a new object:1. Create a direct instance of an objectThe following code creates an instance of an object and adds four properties to it:personObj=new Object();personObj.firstname="John";personObj.lastname="Doe";personObj.age=50;personObj.eyecolor="blue";2. Create a template of an objectThe template defines the structure of an object:function person(firstname,lastname,age,eyecolor){this.firstname=firstname;this.lastname=lastname;this.age=age;this.eyecolor=eyecolor;}With the help of template ,we can create new instances of object like this:
  • 56. validating data on the client
  • 57. create more sophisticated user interfaces.
  • 58. JavaScript effects are also much faster to download than some other front-end technologies like Flash and Java appletsNo need of extra tools to write JavaScript, any plain text or HTML editor will do it. It's also an easy language to learn.
  • 59. It allow Developer to add Dynamic content like image swapping ,Rollover, which is not available in HTML or CSS.CSS basically used for styling ur pages
  • 60. JavaScript used to allow script access to objects embedded in otherapplication.
  • 61. Drawbacks:Browser Compatibility
  • 62. Problems due to use of different javascript