This document provides an overview of scripting languages, including both client-side and server-side languages. It discusses what scripting languages are and how they differ from other programming languages. Several popular scripting languages are described, including JavaScript, PHP, ASP.NET, and more. JavaScript is discussed in more depth as a commonly used client-side language for adding interactivity to web pages. The document also covers JavaScript syntax like variables, operators, and functions, and how JavaScript interacts with web pages using the Document Object Model (DOM).
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPTAAFREEN SHAIKH
This document provides information about JavaScript including:
- JavaScript is a client-side scripting language used to make web pages dynamic. It was created by Brendan Eich at Netscape.
- There are two types of scripting languages - client-side (JavaScript, VBScript) and server-side (ASP, PHP, Perl). Client-side scripts run on the browser while server-side scripts run on the web server.
- JavaScript has various data types including strings, numbers, Booleans, undefined and null. It also has operators like arithmetic, comparison, logical and assignment operators.
- Functions, objects, and events are important concepts in JavaScript. Functions allow code to be reused, objects bundle data
JavaScript is one of three core web technologies that developers must learn, along with HTML and CSS. It allows for dynamic interactions and programming of web page behavior. JavaScript code can be placed in the head or body of an HTML document, or in external files. It uses variables, operators, functions and can access and modify HTML elements using the DOM (Document Object Model).
JavaScript is a dynamic programming language used widely in web pages. It allows client-side scripts to interact with users and dynamically update pages. JavaScript code can be placed within <script> tags in HTML pages or external .js files. Common uses of JavaScript include basic arithmetic, variables, functions, objects, arrays, conditional logic, and DOM manipulation. Key JavaScript concepts covered in the document include data types, operators, variables, functions, objects, arrays, conditional statements, and the Date object.
This document provides an introduction to JavaScript and its uses for web programming. It explains that JavaScript is a client-side scripting language that allows web pages to become interactive. Some key points covered include:
- JavaScript can change HTML content, styles, validate data, and make calculations.
- Functions are blocks of code that perform tasks when invoked by events or called in code.
- Events like clicks or keyboard presses trigger JavaScript code.
- The DOM (Document Object Model) represents an HTML document that JavaScript can access and modify.
- Forms and user input can be accessed and processed using the DOM.
- Programming flow can be controlled with conditional and loop statements.
-
ASP.NET 03 - Working With Web Server ControlsRandy Connolly
This document provides an overview of the different types of server controls in ASP.NET, including their common properties, methods, and events. It describes HTML server controls, web server controls, validation controls, user controls, and custom server controls. It also discusses some common properties like ID, width and font that are shared across most server controls, and how to programmatically manipulate properties and handle events.
The document discusses the basics of C++ programming including:
- Source code is written in a high-level language and saved with file extensions like .cpp.
- The compiler converts source code into machine-readable object code. It checks for syntax errors and translates the program.
- The linker combines object code with library files to create an executable file with a .exe extension that can be run by the operating system.
jQuery is a JavaScript library that makes it easier to write JavaScript code that runs on different browsers. It allows selecting DOM elements, traversing through them and manipulating them. jQuery simplifies tasks like handling events, animating elements, and making AJAX calls. Some key features include selecting elements by tag name, ID, or CSS class; traversing DOM elements; binding event handlers; animating elements with effects like show, hide, fade; and making asynchronous HTTP requests via AJAX.
- JavaScript is a client-side scripting language used to validate data and embed scripts in HTML documents using the <SCRIPT> tag. It was developed by Brendan Eich and is supported by most browsers.
- Functions, variables, operators, and control structures work similarly in JavaScript as in C++. Common data types include numbers, strings, and Booleans. Functions are defined using the function keyword.
- Built-in functions like alert(), prompt(), and document.write() are used for output. Events like onclick trigger JavaScript execution. Arrays and objects allow storing multiple values.
The document provides an overview of JavaScript for a beginner audience. It discusses what JavaScript is, why it is used, examples of its capabilities, and how to write JavaScript code. The session will demonstrate JavaScript capabilities, explain code samples, and answer questions. JavaScript allows dynamic functionality on web pages by manipulating the browser and document object model (DOM).
JavaScript is a programming language used to make web pages interactive. It can be placed in the <body> and <head> sections of an HTML page. JavaScript code must be inserted between <script> and </script> tags. Functions and events allow JavaScript code to run when events occur, like when a user clicks a button. Scripts can also be placed in external .js files for reuse across pages. JavaScript can output data through alerts, writing to the HTML, or the browser console. Variables are used to store and work with data in JavaScript programs. Comments are used to explain code and prevent execution when needed.
The document provides an overview of JavaScript and the Document Object Model (DOM). It introduces JavaScript as a scripting language used to add interactivity and dynamic behavior to web pages. It describes how JavaScript can be implemented in HTML using <script> tags in the head or body, or externally in .js files. The document then covers JavaScript syntax including data types, operators, conditional statements, loops, functions. It also discusses the DOM and how JavaScript can manipulate HTML elements and attributes.
This document provides an overview of AJAX, JSON, jQuery, and livequery. It discusses how these technologies enable asynchronous communication with servers and manipulation of web pages. It also provides examples of using jQuery to select elements, modify attributes and styles, handle events, and perform animations. The document concludes with assignments for demonstrating skills with jQuery selectors, effects, and calendar functionality.
JavaScript is the programming language of the web. It can dynamically manipulate HTML content by changing element properties like innerHTML. Functions allow JavaScript code to run in response to events like button clicks or timeouts. JavaScript uses objects and prototypes to define reusable behaviors and properties for objects. It is an important language for web developers to learn alongside HTML and CSS.
Basic Java script handouts for students shafiq sangi
The document provides an overview of JavaScript, including:
- JavaScript was created in 1995 by Brendan Eich at Netscape to allow for client-side scripting capabilities in web pages.
- JavaScript is an interpreted scripting language that is lightweight and enables dynamic interactions and validations on web pages.
- Common uses of JavaScript include client-side form validation, dynamic content display, and creating interactive elements like dropdown menus and pop-up windows.
- The document then covers JavaScript basics like variables, data types, conditional statements, loops, and functions. Examples are provided for each concept.
The document provides information on JavaScript including:
- JavaScript is a lightweight, interpreted programming language used for creating interactive effects in web pages.
- Client-side JavaScript can validate user input before submitting a form to the server.
- The HTML DOM represents the webpage as an object model which JavaScript can manipulate to dynamically change HTML content.
This document provides an introduction to JavaScript and covers topics such as:
- JavaScript allows for interactivity on web pages by manipulating the browser and reacting to user actions.
- JavaScript code is embedded within HTML pages and executed on the client-side by the browser.
- Common JavaScript concepts covered include variables, functions, scope, events, and form validation.
- JavaScript can be used to validate user input, perform calculations, and modify the DOM in response to events.
The document introduces JavaScript and discusses some key concepts:
1. It defines scripting languages and lists JavaScript, PHP and Python as examples. It also discusses some common applications of scripting languages.
2. It explains how the <script> tag is used to define client-side scripts in HTML and some common attributes of the tag like async, defer and src.
3. It provides an overview of JavaScript, covering data types, variables, operators and more. Arithmetic, comparison, logical and assignment operators are defined along with examples.
This document provides an introduction to JavaScript including:
1. JavaScript is a client-side scripting language that adds interactivity to HTML pages. It is embedded directly into HTML and allows dynamic updating of content.
2. The document covers JavaScript syntax, variables, data types, functions, objects, arrays, strings, dates and more. It provides examples of how to declare variables, write functions, create objects and arrays, and manipulate strings and dates.
3. Methods for output, variable scope, and built-in objects like String, Array, Math and Date are described. The DOM (Document Object Model) and form validation using JavaScript are also mentioned.
The document provides background information on HTML, JavaScript, CSS, and their relationships. It discusses how SGML led to the creation of HTML by Tim Berners-Lee as a subset of SGML. Cascading Style Sheets (CSS) were later created to separate document structure from presentation. Extensible Markup Language (XML) further separated content from style. The document also covers the evolution of HTML versions and the creation of XHTML.
This document provides an introduction to JavaScript and its uses for web programming. It explains that JavaScript is a client-side scripting language that allows web pages to become interactive. Some key points covered include:
- JavaScript can change HTML content, styles, validate data, and make calculations.
- Functions are blocks of code that perform tasks when invoked by events or called in code.
- Events like clicks or keyboard presses trigger JavaScript code.
- The DOM (Document Object Model) represents an HTML document that JavaScript can access and modify.
- Forms and user input can be accessed and processed using the DOM.
- Programming flow can be controlled with conditional and loop statements.
-
ASP.NET 03 - Working With Web Server ControlsRandy Connolly
This document provides an overview of the different types of server controls in ASP.NET, including their common properties, methods, and events. It describes HTML server controls, web server controls, validation controls, user controls, and custom server controls. It also discusses some common properties like ID, width and font that are shared across most server controls, and how to programmatically manipulate properties and handle events.
The document discusses the basics of C++ programming including:
- Source code is written in a high-level language and saved with file extensions like .cpp.
- The compiler converts source code into machine-readable object code. It checks for syntax errors and translates the program.
- The linker combines object code with library files to create an executable file with a .exe extension that can be run by the operating system.
jQuery is a JavaScript library that makes it easier to write JavaScript code that runs on different browsers. It allows selecting DOM elements, traversing through them and manipulating them. jQuery simplifies tasks like handling events, animating elements, and making AJAX calls. Some key features include selecting elements by tag name, ID, or CSS class; traversing DOM elements; binding event handlers; animating elements with effects like show, hide, fade; and making asynchronous HTTP requests via AJAX.
- JavaScript is a client-side scripting language used to validate data and embed scripts in HTML documents using the <SCRIPT> tag. It was developed by Brendan Eich and is supported by most browsers.
- Functions, variables, operators, and control structures work similarly in JavaScript as in C++. Common data types include numbers, strings, and Booleans. Functions are defined using the function keyword.
- Built-in functions like alert(), prompt(), and document.write() are used for output. Events like onclick trigger JavaScript execution. Arrays and objects allow storing multiple values.
The document provides an overview of JavaScript for a beginner audience. It discusses what JavaScript is, why it is used, examples of its capabilities, and how to write JavaScript code. The session will demonstrate JavaScript capabilities, explain code samples, and answer questions. JavaScript allows dynamic functionality on web pages by manipulating the browser and document object model (DOM).
JavaScript is a programming language used to make web pages interactive. It can be placed in the <body> and <head> sections of an HTML page. JavaScript code must be inserted between <script> and </script> tags. Functions and events allow JavaScript code to run when events occur, like when a user clicks a button. Scripts can also be placed in external .js files for reuse across pages. JavaScript can output data through alerts, writing to the HTML, or the browser console. Variables are used to store and work with data in JavaScript programs. Comments are used to explain code and prevent execution when needed.
The document provides an overview of JavaScript and the Document Object Model (DOM). It introduces JavaScript as a scripting language used to add interactivity and dynamic behavior to web pages. It describes how JavaScript can be implemented in HTML using <script> tags in the head or body, or externally in .js files. The document then covers JavaScript syntax including data types, operators, conditional statements, loops, functions. It also discusses the DOM and how JavaScript can manipulate HTML elements and attributes.
This document provides an overview of AJAX, JSON, jQuery, and livequery. It discusses how these technologies enable asynchronous communication with servers and manipulation of web pages. It also provides examples of using jQuery to select elements, modify attributes and styles, handle events, and perform animations. The document concludes with assignments for demonstrating skills with jQuery selectors, effects, and calendar functionality.
JavaScript is the programming language of the web. It can dynamically manipulate HTML content by changing element properties like innerHTML. Functions allow JavaScript code to run in response to events like button clicks or timeouts. JavaScript uses objects and prototypes to define reusable behaviors and properties for objects. It is an important language for web developers to learn alongside HTML and CSS.
Basic Java script handouts for students shafiq sangi
The document provides an overview of JavaScript, including:
- JavaScript was created in 1995 by Brendan Eich at Netscape to allow for client-side scripting capabilities in web pages.
- JavaScript is an interpreted scripting language that is lightweight and enables dynamic interactions and validations on web pages.
- Common uses of JavaScript include client-side form validation, dynamic content display, and creating interactive elements like dropdown menus and pop-up windows.
- The document then covers JavaScript basics like variables, data types, conditional statements, loops, and functions. Examples are provided for each concept.
The document provides information on JavaScript including:
- JavaScript is a lightweight, interpreted programming language used for creating interactive effects in web pages.
- Client-side JavaScript can validate user input before submitting a form to the server.
- The HTML DOM represents the webpage as an object model which JavaScript can manipulate to dynamically change HTML content.
This document provides an introduction to JavaScript and covers topics such as:
- JavaScript allows for interactivity on web pages by manipulating the browser and reacting to user actions.
- JavaScript code is embedded within HTML pages and executed on the client-side by the browser.
- Common JavaScript concepts covered include variables, functions, scope, events, and form validation.
- JavaScript can be used to validate user input, perform calculations, and modify the DOM in response to events.
The document introduces JavaScript and discusses some key concepts:
1. It defines scripting languages and lists JavaScript, PHP and Python as examples. It also discusses some common applications of scripting languages.
2. It explains how the <script> tag is used to define client-side scripts in HTML and some common attributes of the tag like async, defer and src.
3. It provides an overview of JavaScript, covering data types, variables, operators and more. Arithmetic, comparison, logical and assignment operators are defined along with examples.
This document provides an introduction to JavaScript including:
1. JavaScript is a client-side scripting language that adds interactivity to HTML pages. It is embedded directly into HTML and allows dynamic updating of content.
2. The document covers JavaScript syntax, variables, data types, functions, objects, arrays, strings, dates and more. It provides examples of how to declare variables, write functions, create objects and arrays, and manipulate strings and dates.
3. Methods for output, variable scope, and built-in objects like String, Array, Math and Date are described. The DOM (Document Object Model) and form validation using JavaScript are also mentioned.
The document provides background information on HTML, JavaScript, CSS, and their relationships. It discusses how SGML led to the creation of HTML by Tim Berners-Lee as a subset of SGML. Cascading Style Sheets (CSS) were later created to separate document structure from presentation. Extensible Markup Language (XML) further separated content from style. The document also covers the evolution of HTML versions and the creation of XHTML.
Unit 2 discusses different programming paradigms including structured and unstructured programming. Structured programming divides code into modular functions making it easier to test, debug and modify, while unstructured programming writes code in a single block. Common structured programming languages include C and Pascal.
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxSherinRappai
The document discusses computing, programming, algorithms, and program development life cycle. It provides definitions and explanations of key concepts:
1. A program is a set of instructions that tells a computer how to perform tasks, written in a programming language. Programs range from simple scripts to complex applications.
2. Algorithms are step-by-step procedures for solving problems or performing tasks. They are incorporated into programs.
3. The program development life cycle includes phases like analysis, design, coding, testing, and maintenance to systematically create reliable programs. Diagramming tools like pseudocode, flowcharts, and UML diagrams are used in the design process.
- The document discusses various clustering techniques used in unsupervised machine learning. It describes partitioning methods like k-means and k-medoids, hierarchical methods like agglomerative and divisive clustering, and density-based methods like DBSCAN. It also covers choosing the number of clusters and interpreting clustering results. Clustering is used in applications such as customer segmentation, anomaly detection, and data simplification.
This document discusses artificial neural networks. It defines neural networks as computational models inspired by the human brain that are used for tasks like classification, clustering, and pattern recognition. The key points are:
- Neural networks contain interconnected artificial neurons that can perform complex computations. They are inspired by biological neurons in the brain.
- Common neural network types are feedforward networks, where data flows from input to output, and recurrent networks, which contain feedback loops.
- Neural networks are trained using algorithms like backpropagation that minimize error by adjusting synaptic weights between neurons.
- Neural networks have various applications including voice recognition, image recognition, and robotics due to their ability to learn from large amounts of data.
This document discusses rendering algorithms and techniques. It begins by defining rendering as the process of generating 2D or 3D images from 3D models. There are two main categories of rendering: real-time rendering used for interactive graphics, and pre-rendering used where image quality is prioritized over speed. The three main computational techniques are ray casting, ray tracing, and shading. Ray tracing simulates physically accurate lighting by tracing the path of light rays. Shading determines an object's shade based on attributes like diffuse illumination and light source contributions.
Technology Trends in 2025: AI and Big Data AnalyticsInData Labs
At InData Labs, we have been keeping an ear to the ground, looking out for AI-enabled digital transformation trends coming our way in 2025. Our report will provide a look into the technology landscape of the future, including:
-Artificial Intelligence Market Overview
-Strategies for AI Adoption in 2025
-Anticipated drivers of AI adoption and transformative technologies
-Benefits of AI and Big data for your business
-Tips on how to prepare your business for innovation
-AI and data privacy: Strategies for securing data privacy in AI models, etc.
Download your free copy nowand implement the key findings to improve your business.
With the cost of electricity increasing and ecological concerns becoming increasingly difficult to dismiss, numerous Indian homes and businesses are looking for improved means of meeting their energy requirements. That's where solar enters the picture not as a substitute, but as a trustworthy, long-term option. Among all the alternatives today, the 5kW solar system is a balanced option. It's strong enough for the majority of homes and small business installations, but small and inexpensive enough to bring about solar adoption at ease and efficiency.
Explore the complete guide to 5kW solar system installation in India. Learn about cost, daily output, subsidy in 2025, benefits for homes & businesses, and how to apply in Gujarat.
Canadian book publishing: Insights from the latest salary survey - Tech Forum...BookNet Canada
Join us for a presentation in partnership with the Association of Canadian Publishers (ACP) as they share results from the recently conducted Canadian Book Publishing Industry Salary Survey. This comprehensive survey provides key insights into average salaries across departments, roles, and demographic metrics. Members of ACP’s Diversity and Inclusion Committee will join us to unpack what the findings mean in the context of justice, equity, diversity, and inclusion in the industry.
Results of the 2024 Canadian Book Publishing Industry Salary Survey: https://publishers.ca/wp-content/uploads/2025/04/ACP_Salary_Survey_FINAL-2.pdf
Link to presentation recording and transcript: https://bnctechforum.ca/sessions/canadian-book-publishing-insights-from-the-latest-salary-survey/
Presented by BookNet Canada and the Association of Canadian Publishers on May 1, 2025 with support from the Department of Canadian Heritage.
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Raffi Khatchadourian
Efficiency is essential to support responsiveness w.r.t. ever-growing datasets, especially for Deep Learning (DL) systems. DL frameworks have traditionally embraced deferred execution-style DL code—supporting symbolic, graph-based Deep Neural Network (DNN) computation. While scalable, such development is error-prone, non-intuitive, and difficult to debug. Consequently, more natural, imperative DL frameworks encouraging eager execution have emerged but at the expense of run-time performance. Though hybrid approaches aim for the “best of both worlds,” using them effectively requires subtle considerations to make code amenable to safe, accurate, and efficient graph execution—avoiding performance bottlenecks and semantically inequivalent results. We discuss the engineering aspects of a refactoring tool that automatically determines when it is safe and potentially advantageous to migrate imperative DL code to graph execution and vice-versa.
Procurement Insights Cost To Value Guide.pptxJon Hansen
Procurement Insights integrated Historic Procurement Industry Archives, serves as a powerful complement — not a competitor — to other procurement industry firms. It fills critical gaps in depth, agility, and contextual insight that most traditional analyst and association models overlook.
Learn more about this value- driven proprietary service offering here.
Dev Dives: Automate and orchestrate your processes with UiPath MaestroUiPathCommunity
This session is designed to equip developers with the skills needed to build mission-critical, end-to-end processes that seamlessly orchestrate agents, people, and robots.
📕 Here's what you can expect:
- Modeling: Build end-to-end processes using BPMN.
- Implementing: Integrate agentic tasks, RPA, APIs, and advanced decisioning into processes.
- Operating: Control process instances with rewind, replay, pause, and stop functions.
- Monitoring: Use dashboards and embedded analytics for real-time insights into process instances.
This webinar is a must-attend for developers looking to enhance their agentic automation skills and orchestrate robust, mission-critical processes.
👨🏫 Speaker:
Andrei Vintila, Principal Product Manager @UiPath
This session streamed live on April 29, 2025, 16:00 CET.
Check out all our upcoming Dev Dives sessions at https://community.uipath.com/dev-dives-automation-developer-2025/.
Spark is a powerhouse for large datasets, but when it comes to smaller data workloads, its overhead can sometimes slow things down. What if you could achieve high performance and efficiency without the need for Spark?
At S&P Global Commodity Insights, having a complete view of global energy and commodities markets enables customers to make data-driven decisions with confidence and create long-term, sustainable value. 🌍
Explore delta-rs + CDC and how these open-source innovations power lightweight, high-performance data applications beyond Spark! 🚀
HCL Nomad Web – Best Practices and Managing Multiuser Environmentspanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-nomad-web-best-practices-and-managing-multiuser-environments/
HCL Nomad Web is heralded as the next generation of the HCL Notes client, offering numerous advantages such as eliminating the need for packaging, distribution, and installation. Nomad Web client upgrades will be installed “automatically” in the background. This significantly reduces the administrative footprint compared to traditional HCL Notes clients. However, troubleshooting issues in Nomad Web present unique challenges compared to the Notes client.
Join Christoph and Marc as they demonstrate how to simplify the troubleshooting process in HCL Nomad Web, ensuring a smoother and more efficient user experience.
In this webinar, we will explore effective strategies for diagnosing and resolving common problems in HCL Nomad Web, including
- Accessing the console
- Locating and interpreting log files
- Accessing the data folder within the browser’s cache (using OPFS)
- Understand the difference between single- and multi-user scenarios
- Utilizing Client Clocking
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPathCommunity
Join this UiPath Community Berlin meetup to explore the Orchestrator API, Swagger interface, and the Test Manager API. Learn how to leverage these tools to streamline automation, enhance testing, and integrate more efficiently with UiPath. Perfect for developers, testers, and automation enthusiasts!
📕 Agenda
Welcome & Introductions
Orchestrator API Overview
Exploring the Swagger Interface
Test Manager API Highlights
Streamlining Automation & Testing with APIs (Demo)
Q&A and Open Discussion
Perfect for developers, testers, and automation enthusiasts!
👉 Join our UiPath Community Berlin chapter: https://community.uipath.com/berlin/
This session streamed live on April 29, 2025, 18:00 CET.
Check out all our upcoming UiPath Community sessions at https://community.uipath.com/events/.
Artificial Intelligence is providing benefits in many areas of work within the heritage sector, from image analysis, to ideas generation, and new research tools. However, it is more critical than ever for people, with analogue intelligence, to ensure the integrity and ethical use of AI. Including real people can improve the use of AI by identifying potential biases, cross-checking results, refining workflows, and providing contextual relevance to AI-driven results.
News about the impact of AI often paints a rosy picture. In practice, there are many potential pitfalls. This presentation discusses these issues and looks at the role of analogue intelligence and analogue interfaces in providing the best results to our audiences. How do we deal with factually incorrect results? How do we get content generated that better reflects the diversity of our communities? What roles are there for physical, in-person experiences in the digital world?
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxshyamraj55
We’re bringing the TDX energy to our community with 2 power-packed sessions:
🛠️ Workshop: MuleSoft for Agentforce
Explore the new version of our hands-on workshop featuring the latest Topic Center and API Catalog updates.
📄 Talk: Power Up Document Processing
Dive into smart automation with MuleSoft IDP, NLP, and Einstein AI for intelligent document workflows.
Transcript: Canadian book publishing: Insights from the latest salary survey ...BookNet Canada
Join us for a presentation in partnership with the Association of Canadian Publishers (ACP) as they share results from the recently conducted Canadian Book Publishing Industry Salary Survey. This comprehensive survey provides key insights into average salaries across departments, roles, and demographic metrics. Members of ACP’s Diversity and Inclusion Committee will join us to unpack what the findings mean in the context of justice, equity, diversity, and inclusion in the industry.
Results of the 2024 Canadian Book Publishing Industry Salary Survey: https://publishers.ca/wp-content/uploads/2025/04/ACP_Salary_Survey_FINAL-2.pdf
Link to presentation slides and transcript: https://bnctechforum.ca/sessions/canadian-book-publishing-insights-from-the-latest-salary-survey/
Presented by BookNet Canada and the Association of Canadian Publishers on May 1, 2025 with support from the Department of Canadian Heritage.
2. A client-side script is a program that may accompany
an HTML document or be embedded directly in it.
The program executes on the client's machine when the
document loads, or at some other time such as when a
link is activated.
HTML's support for scripts is independent of the
scripting language.
3. JavaScript was designed to 'plug a gap' in the
techniques available for creating web-pages.
HTML is relatively easy to learn, but it is static.
It allows the use of links to load new pages, images,
sounds, etc., but it provides very little support for any
other type of interactivity.
4. To create dynamic material it was necessary to use
either:
CGI (Common Gateway Interface) programs
· Can be used to provide a wide range of interactive
features
5. The Browser Object Model (BOM) in JavaScript
includes the properties and methods for JavaScript to
interact with the web browser.
BOM provides you with a window objects, for
example, to show the width and height of the window.
It also includes the window.
Screen object to show the width and height of the
screen.
6. The browser object represents the web browser itself and provides
methods and properties for interacting with the browser environment. It
typically includes objects and functionalities related to the browser
window, history, location, and navigation. Some common browser objects
include:
window: The global object representing the browser window. It
provides access to various properties and methods related to the
browser environment.
document: The object representing the current web page loaded in the
browser window.
navigator: The object containing information about the browser, such
as its name, version, and platform.
location: The object representing the URL of the current web page and
providing methods for manipulating the browser's location.
These browser objects can be accessed and manipulated using
JavaScript, allowing developers to control various aspects of the
browsing experience.
7. DOM is a fundamental concept in web development, providing a structured and
programmable way to interact with HTML documents, enabling the creation of
dynamic and interactive web pages.
It serves as the entry point for accessing and manipulating the elements, attributes, and
text content of the web page.
Some common properties and methods of the document object include:
getElementById(): A method for retrieving an element from the DOM using its unique
identifier (ID).
getElementsByClassName(): A method for retrieving elements from the DOM using
their class names.
getElementsByTagName(): A method for retrieving elements from the DOM using
their tag names.
createElement(): A method for creating a new HTML element dynamically.
document.createElement(tagName);
appendChild(): A method for adding a new child element to an existing element in the
DOM. This method is typically called on a parent element to which you want to
append a child element
parentElement.appendChild(childElement);
8. 1.
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
<div id="myDiv">This is a div element with an id of
"myDiv".</div>
<script>
// Using getElementById to select the element with
id "myDiv"
var element =
document.getElementById("myDiv");
// Manipulating the selected element
element.style.color = "red"; // Changing text color
to red
</script>
</body>
</html>
2.
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<style>
.highlight {
background-color: yellow;
}
</style>
</head>
<body>
<p class="highlight">This paragraph has the "highlight"
class.</p>
<p>This paragraph does not have any class.</p>
<script>
var elements =
document.getElementsByClassName("highlight");
// Manipulating the selected elements
for (var i = 0; i < elements.length; i++)
{elements[i].style.fontWeight = "bold";
// Making text bold
}
</script>
</body>
</html>
3.
// Using getElementsByTagName to select all <p>
elements
var
document.getElementsByTagName("p");
9. We can add JavaScript code in an HTML document by
employing the dedicated HTML tag <script> that wraps
around JavaScript code.
The <script> tag can be placed in the <head> section of
your HTML, in the <body> section, or after the
</body> close tag, depending on when you want the
JavaScript to load
10. The <script> Tag
In HTML, JavaScript code is inserted between <script>
and </script> tags.
11. Comments can be put into any place of a script. They
don’t affect its execution because the engine simply
ignores them.
One-line comments start with two forward slash
characters //
Ex // This comment occupies a line of its own
Multiline comments start with a forward slash and
an asterisk /* and end with an asterisk and a
forward slash */.
Ex /* An example with two messages. This is a multiline
comment.*/
12. Using var (2015)
Using let (after 2015)
Using const
Using nothing
13. A variable is a “named storage” for data. We can use
variables to store goodies, visitors, and other data.
To create a variable in JavaScript, use the let keyword.
The statement below creates (in other words: declares)
a variable with the name “message”:
let message; We can put some data into it by using
the assignment operator =:
let message;
message = 'Hello'; // store the string
19. An expression is a combination of values,
variables, and operators, which computes to a
value
5*10
X+40
"John" + " " + "Doe"
24. Arithmetic Operators
Sr.No Operator & Description
1 + (Addition)
Adds two operands
Ex: A + B will give 30
2 - (Subtraction)
Subtracts the second operand from the first
Ex: A - B will give -10
3 * (Multiplication)
Multiply both operands
Ex: A * B will give 200
4 / (Division)
Divide the numerator by the denominator
Ex: B / A will give 2
25. 5 % (Modulus)
Outputs the remainder of an integer
division
Ex: B % A will give 0
6 ++ (Increment)
Increases an integer value by one
Ex: A++ will give 11
7 -- (Decrement)
Decreases an integer value by one
Ex: A-- will give 9
26. Assignment operators assign values to JavaScript
variables.
The Addition Assignment Operator (+=) adds a
value to a variable.
let x = 5 + 5;
let y = "5" + 5;
let z = "Hello" + 5;
10
55
Hello5
27. Operator Example Same As
= x = y x = y
+= x += y x = x + y
-= x -= y x = x - y
*= x *= y x = x * y
/= x /= y x = x / y
%= x %= y x = x % y
**= x **= y x = x ** y
28. Operato
r
Description
== equal to
=== equal value and equal type
!= not equal
!== not equal value or not equal type
> greater than
< less than
>= greater than or equal to
<= less than or equal to
? ternary operator
29. Sr.No. Operator & Description
1 = = (Equal)
Checks if the value of two operands are equal or not, if yes, then the condition
becomes true.
Ex: (A == B) is not true.
2 != (Not Equal)
Checks if the value of two operands are equal or not, if the values are not equal,
then the condition becomes true.
Ex: (A != B) is true.
3 > (Greater than)
Checks if the value of the left operand is greater than the value of the right
operand, if yes, then the condition becomes true.
Ex: (A > B) is not true.
4 < (Less than)
Checks if the value of the left operand is less than the value of the right
operand, if yes, then the condition becomes true.
Ex: (A < B) is true.
5 >= (Greater than or Equal to)
Checks if the value of the left operand is greater than or equal to the value of
the right operand, if yes, then the condition becomes true.
Ex: (A >= B) is not true.
6 <= (Less than or Equal to)
Checks if the value of the left operand is less than or equal to the value of the
right operand, if yes, then the condition becomes true.
Ex: (A <= B) is true.
30. Sr.N0 Operator & Description
1 && (Logical AND)
If both the operands are non-zero, then the
condition becomes true.
Ex: (A && B) is true.
2 || (Logical OR)
If any of the two operands are non-zero, then the
condition becomes true.
Ex: (A || B) is true.
3 ! (Logical NOT)
Reverses the logical state of its operand. If a
condition is true, then the Logical NOT operator
will make it false.
Ex: ! (A && B) is false.
33. Converting Strings to Numbers
Converting Numbers to Strings
Converting Dates to Numbers
Converting Numbers to Dates
Converting Booleans to Numbers
Converting Numbers to Booleans
34. The global method Number() converts a
variable (or a value) into a number.
36. The global method String() can convert
numbers to strings.
It can be used on any type of numbers,
literals, variables, or expressions:
42. Method Description
getFullYear() Get year as a four digit number (yyyy)
getMonth() Get month as a number (0-11)
getDate() Get day as a number (1-31)
getDay() Get weekday as a number (0-6)
getHours() Get hour (0-23)
getMinutes() Get minute (0-59)
getSeconds() Get second (0-59)
getMilliseconds() Get millisecond (0-999)
getTime() Get time (milliseconds since January 1,
1970)
44. The if Statement
Use the if statement to specify a block of JavaScript
code to be executed if a condition is true.
Syntax
if (condition) {
// block of code to be executed if the condition is true
}
45. if (condition) {
// block of code to be executed if
the condition is true
} else {
// block of code to be executed if
the condition is false
}
46. if (condition1) {
// block of code to be executed if
condition1 is true
} else if (condition2) {
// block of code to be executed if the
condition1 is false and condition2 is true
} else {
// block of code to be executed if the
condition1 is false and condition2 is false
}
48. The while Loop
The most basic loop in JavaScript is the while loop
which would be discussed in this chapter.
The purpose of a while loop is to execute a statement or
code block repeatedly as long as an expression is true.
Once the expression becomes false, the loop
terminates.
49. Syntax
The syntax of while loop in JavaScript is as follows −
while (expression)
{
Statement(s) to be executed if expression is true
}
50. The do...while loop is similar to the while loop except
that the condition check happens at the end of the loop.
Syntax
The syntax for do-while loop in JavaScript is as
follows −
Do
{ Statement(s) to be executed;}
while (expression);
51. The loop initialization where we initialize our counter
to a starting value. The initialization statement is
executed before the loop begins.
The test statement which will test if a given condition
is true or not. If the condition is true, then the code
given inside the loop will be executed, otherwise the
control will come out of the loop.
The iteration statement where you can increase or
decrease your counter.
52. Syntax
The syntax of for loop is JavaScript is as follows −
for (initialization; test condition; iteration statement)
{
Statement(s) to be executed if test condition is true
}
53. Before we use a function, we need to define it.
The most common way to define a function in
JavaScript is by using the function keyword, followed
by a unique function name, a list of parameters (that
might be empty), and a statement block surrounded by
curly braces.
54. Syntax
The basic syntax is shown here.
<script type = "text/javascript">
<!—
function functionname(parameter-list)
{
Statements
}//-->
</script>
55. Example
Try the following example. It defines a function called
sayHello that takes no parameters −
<script type = "text/javascript">
<!--function sayHello()
{
alert("Hello there");
}//-->
</script>
56. Calling a Function
To invoke a function somewhere later in the script, you
would simply need to write the name of that function as
shown in the following code
<html><head>
<script type = "text/javascript">
function sayHello()
{
document.write ("Hello there!");
}
</script>
</head>
57. <body>
<p>Click the following button to call the function</p>
<form>
<input type = "button" onclick = "sayHello()" value =
"Say Hello">
</form>
<p>Use different text in write method and then try...</p>
</body>
</html>
58. The JavaScript string is an object that represents a
sequence of characters.
There are 2 ways to create string in JavaScript
By string literal
By string object (using new keyword)
59. 1) By string literal
The string literal is created using double quotes. The
syntax of creating string using string literal is given
below:
var stringname="string value";
60. 2) By string object (using new keyword)
The syntax of creating string object using new keyword
is given below:
var stringname=new String("string literal");
61. Methods Description
charAt() It provides the char value present at the specified index.
concat() It provides a combination of two or more strings.
search()
It searches a specified regular expression in a given string and returns
its position if a match occurs.
replace() It replaces a given string with the specified replacement.
toLowerCase() It converts the given string into lowercase letter.
toUpperCase() It converts the given string into uppercase letter.
trim() It trims the white space from the left and right side of the string.
62. The JavaScript date object can be used to get year,
month and day.
You can display a timer on the webpage by the help of
JavaScript date object.
63. Methods Description
getDate()
It returns the integer value between 1 and 31 that represents
the day for the specified date on the basis of local time.
getDay()
It returns the integer value between 0 and 6 that represents
the day of the week on the basis of local time.
getFullYears()
It returns the integer value that represents the year on the
basis of local time.
getHours()
It returns the integer value between 0 and 23 that represents
the hours on the basis of local time.
getMilliseconds()
It returns the integer value between 0 and 999 that represents
the milliseconds on the basis of local time.
getMinutes()
It returns the integer value between 0 and 59 that represents
the minutes on the basis of local time.
getMonth()
It returns the integer value between 0 and 11 that represents
the month on the basis of local time.
getSeconds()
It returns the integer value between 0 and 60 that represents
the seconds on the basis of local time.
64. The JavaScript math object provides several constants
and methods to perform mathematical operation
65. Methods Description
abs() It returns the absolute value of the given number.
cos() It returns the cosine of the given number.
floor()
It returns largest integer value, lower than or equal
to the given number.
max() It returns maximum value of the given numbers.
min() It returns minimum value of the given numbers.
pow() It returns value of base to the power of exponent.
round() It returns closest integer value of the given number.
Sqrt()
It is used to return the square root of
a number.
66. The window object represents a window in browser.
An object of window is created automatically by the
browser.
The window object in JavaScript represents the
browser's window. It provides various event handlers
that allow you to respond to different events that occur
within the window or the document it contains. Here
are some common event handlers associated with the
window object:
67. onload: This event handler is triggered when the
entire page (including all images, scripts, etc.) has
finished loading.
onunload: This event handler is triggered just
before the user navigates away from the page
(e.g., by closing the browser window or navigating
to a different URL).
onbeforeunload: Similar to onunload, this event
handler is triggered just before the user navigates
away from the page. It can be used to prompt the
user with a confirmation dialog to confirm leaving
the page.
68. onresize: This event handler is triggered when the
window is resized.
onscroll: This event handler is triggered when the
user scrolls the window.
onkeydown, onkeyup, onkeypress: These event
handlers are triggered when the user presses a
key, releases a key, or presses a key that
produces a character respectively.
71. The change in the state of an object is known as
an Event.
In html, there are various events which represents that
some activity is performed by the user or by the
browser.
72. Event Performed Event Handler Description
click onclick
When mouse click on an
element
mouseover onmouseover
When the cursor of the
mouse comes over the
element
mouseout onmouseout
When the cursor of the
mouse leaves an element
mousedown onmousedown
When the mouse button
is pressed over the
element
mouseup onmouseup
When the mouse button
is released over the
element
mousemove onmousemove
When the mouse
movement takes place.
73. Event Performed
Event Handler Description
Keydown & Keyup
onkeydown &
onkeyup
When the user press
and then release the
key
74. Event Performed Event Handler Description
focus onfocus
When the user focuses on
an element
submit onsubmit
When the user submits
the form
blur onblur
When the focus is away
from a form element
change onchange
When the user modifies
or changes the value of a
form element
#3: Client-side Script:
A client-side script refers to a program written in a scripting language (such as JavaScript) that accompanies an HTML document.
These scripts are executed on the client's machine, typically within a web browser, as opposed to being executed on the server.
The execution occurs when the HTML document loads in the browser or in response to specific events triggered by user actions, such as clicking a link or submitting a form.
Execution Timing:
The script can execute either when the HTML document initially loads or at a later time based on specific triggers or events.
For example, a script may execute immediately upon page load to perform initialization tasks, or it may wait for a user action like clicking a button to execute certain functionalities.
Independence from HTML:
HTML documents support the inclusion of scripts regardless of the scripting language used.
This means that HTML itself does not dictate the choice of scripting language; rather, it provides mechanisms (such as the <script> tag) for including and executing scripts.
Common scripting languages used with HTML include JavaScript, VBScript, and more recently, TypeScript.
#4: Common Gateway Interface (CGI) programs are scripts or executable programs that handle the communication between a web server and external programs or databases. They are often used to generate dynamic content on web pages, such as processing form data, accessing databases, or performing other server-side tasks.
JavaScript is a high-level, interpreted programming language primarily used for creating dynamic and interactive content on web pages. Originally developed by Netscape, JavaScript has evolved into one of the most widely used languages for web development. Here are some key points about JavaScript:
Client-side scripting: JavaScript is primarily executed on the client side, meaning it runs in the user's web browser. This allows JavaScript to manipulate the content of web pages, respond to user interactions, and dynamically update the page without needing to communicate with the server.
Dynamic and interactive: JavaScript enables developers to create dynamic and interactive web experiences by allowing them to modify HTML and CSS, handle events such as mouse clicks and keyboard input, and perform actions like form validation and animations.
Versatile: While JavaScript is most commonly associated with web development, it is also used in other environments such as server-side development (with platforms like Node.js), mobile app development (using frameworks like React Native), and desktop application development (with tools like Electron).
#9: The dot (.) is a CSS notation indicating that "highlight" is a class name. In CSS syntax, when you prefix a name with a dot (.), it signifies a class selector.
#32: This line retrieves the element with the ID "demo" using document.getElementById("demo"), and then sets its innerHTML property to the value of x. This will display the value of x
#36: In JavaScript, the Number() function is typically used to convert a value to a number. However, when attempting to convert the string '99 88"' to a number using the Number() function, it will return NaN because the string is not a valid number. The presence of non-numeric characters like space and double quotes makes it impossible to interpret the string as a valid number.
When you attempt to convert the string 'John" to a number using the Number() function in JavaScript, it will return NaN (Not a Number). This is because the string 'John" does not represent a valid numeric value. The Number() function in JavaScript is used to convert values to numbers, but it can only convert strings that represent valid numeric values (such as '123', '3.14', etc.). If the string contains non-numeric characters or cannot be interpreted as a number, the result of Number() will be NaN.
#38: String(123)
This will return the string "123", as the number 123 is converted to its string representation.
String(100+23)
This will return the string "123", as the expression 100+23 evaluates to 123, which is then converted to its string representation.
#76: In this example, when the page loads, the JavaScript code within the <script> tag is executed. It selects the username input element by its ID ("username") using document.getElementById("username"), then it calls the focus() method on this element to give it focus. As a result, the cursor will automatically be placed in the username input field when the page loads.
#77: In this example, the form element has an ID of "myForm". When the button with the onclick attribute calls the submitForm() function, it grabs the form element using document.getElementById("myForm") and then calls the submit() method on it. This action triggers the submission of the form. The form submission will then follow the action specified in the form's action attribute, which in this case is set to "/submit-url", and the method specified in the method attribute, which is set to "post".
#78: In this example, clicking the "Blur Username" button triggers the blurElement() function, which gets the username input element by its ID ("username") using document.getElementById("username"), and then calls the blur() method on it. This removes the focus from the username input field.
#79: In this example, we have a <select> element with options for different colors. The onchange attribute is set to the function showSelectedColor(). When the user selects a different color from the dropdown, the showSelectedColor() function is triggered.
Inside the function:
We first get the <select> element using document.getElementById("color").
We retrieve the selected value using colorSelect.value, which represents the value of the selected <option>.
We also retrieve the text of the selected <option> using colorSelect.options[colorSelect.selectedIndex].text.
Finally, we update the content of the paragraph element with the id "selectedColor" to display the selected color and its corresponding value.