Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Class notes Programming

Rating
-
Sold
-
Pages
26
Uploaded on
08-10-2025
Written in
2025/2026

This is easy to understand and Read this is important in external exam this is 3rd chapter of web design

Institution
Course

Content preview

O
Unit-3 Overview of JavaScript Web Designing-1
 Overview of Scripting Language
 All scripting languages are programming languages.
 The scripting language is basically a language where instructions are written for a
run time environment.
 They do not require the compilation step and are rather interpreted.
 A scripting language is a programming language designed for integrating and
communicating with other programming languages.
 The role of scripting language is to add various functionality to a web page.
 There are two types of scripting languages:
1.Client-side scripting language
2.Server-side scripting language
 Example of scripting languages:JavaScript,ASP,PHP,Perl,JSP and Python.
 Client side scripting
 Client-side scripting is set of codes that are executed by the server.
 Example of client-side scripts are JavaScript and VBScript.
 Client-side scripts contain programs for browser.
 Interact with temporary storage
 Make interactive web pages
 Interact with local storage
 Sending request for data to server
 Send request to server
 work as an interface between server and user
 Example: JavaScript, HTML, Ajax, CSS etc.
 E.g. when a button is clicked , these instructions are executed without
concerning any server interaction.
 Server side scripting
 Server-side scripts are written in languages such as Perl,PHP,ASP.net,etc.
 When user requests such type of document containing these scripts then
these scripts are executed by the web server.
 Server-side scripting is generally used as an interface to databases or other
data stores to make website more interactive.
 Querying the database
 Operations over databases
 Access/Write a file on server.
 Interact with other servers.

Page No. 1

,O
Unit-3 Overview of JavaScript Web Designing-1


 Structure web applications.
 Process user input. For example if user input is a text in search box,run a search
algorithm on data stored on server and search the results.
 Example: PHP,C++,Python , JSP etc.
 Structure of JavaScript
 JavaScript is a programming language initially designed to interact with elements of
web pages.
 JavaScript allows you to add interactivity to a web page. Typically, you use JavaScript
with HTML and CSS to enhance a web page’s functionality, such as validating forms,
creating interactive maps, and displaying animated charts.
 We can write the JavaScript on the different location of the webpage:


1. Inside <Script> tag:

 In HTML, JavaScript code is inserted between <script> and </script> tags.
 Example:
<script>
document.getElementById("demo").innerHTML = "My First JavaScript";
</script>

2. Inside <head> :

 In this example, a JavaScript function is placed in the <head> section of an HTML
page.
 The function is invoked(called) when button is clicked.
 Example:
<!DOCTYPE html>
<html>
<head>
<script>
function myFunction()
{
document.getElementById("demo").innerHTML = "Paragraph changed.";
}
</script>

Page No. 2

, O
Unit-3 Overview of JavaScript Web Designing-1
</head>
<body>
<h1>A Web Page</h1>
<p id="demo">A Paragraph</p>
<button type="button" onclick="myFunction()">Try it</button>
</body>
</html>


3. Inside <body> :

 In this example, a JavaScript function is placed in the <body> section of an HTML
page.
 The function is invoked(called) when button is clicked.
 Example:
<!DOCTYPE html>
<html>
<head>

</head>
<body>
<h1>A Web Page</h1>
<p id="demo">A Paragraph</p>
<button type="button" onclick="myFunction()">Try it</button>

<script>
function myFunction()
{
document.getElementById("demo").innerHTML = "Paragraph changed.";
}
</script>

</body>
</html>




Page No. 3

Written for

Institution
Course

Document information

Uploaded on
October 8, 2025
Number of pages
26
Written in
2025/2026
Type
Class notes
Professor(s)
Priya
Contains
All classes

Subjects

$7.48
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
meetbhaai

Get to know the seller

Seller avatar
meetbhaai Atmanand saraswati science college
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
6 months
Number of followers
0
Documents
5
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions