SlideShare a Scribd company logo
2
Most read
3
Most read
Active Browser Web Page:
• An active web page is a web page where the browser performs the logic instead of
web server. For Example when you have got a page where you’re showing share
prices, and you update that page after each 5 seconds. There is a solution to
update result of that web page without reloading or refreshing the webpage.
• It can be possible by using AJAX with JavaScript. In contrast to PHP your
browser is able to execute JavaScript, so it is happening without reloading the
webpage.
• By using Active Web Page everything is happening inside the webpage and there
is no need to update or refresh or reload the webpage.
• For Example active users on FB are updated automatically using Active Browser
Web Page techniques.
JavaScript:
JavaScript is used in millions of Web pages to improve the design, validate forms, detect
browsers, create cookies, and much more.
JavaScript is the most popular scripting language on the internet, and works in all major
browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, Opera.
Java Script is a client-side language.
It can convert your static HTML page into the Dynamic page.
It works on all major browsers.
It has many more libraries to make your work more easier.
What JS can Do?
It can totally change our complete HTML webpage with new elements and contents.
It can add dynamics to our webpage such as animation.
It can add user interface in our webpage such as get name from prompt box and show it
with the user given name.
JavaScript can validate form before submitting.
It apply restrictions on each field of your webpage form before submitting.
Requirements:
Basic knowledge of CSS and HTML is must before making a webpage that includes JS.
A notepad to write JS code such as Notepad++ and Dreamviewer.
And also a browsers to check its output.
Types of JS:
Internal JS
External JS
Internal JS:
A type of JS in which user writes code inside the HTML body webpage.
Internal JS is used for short scripts.
Syntax:
<script>
document.write(“Hello World”);
</script>
External JS:
A type of JS in which user write all JS code in another or separate file is called External
JS.
In External JS there is no need to write code in HTML body.
The code of JS is written in separate files and save with .js extension.
And then linked to the HTML head tag by using source of file.
It separates HTML and JS code.
It makes HTML and JS easier to read and maintain usually when there is a very long or
lengthy project.
Cached Java Script files can speed up page loads.
Syntax:
<script src=’link of .js file’></script>
Data Type of JS:
String
Integer
Boolean
Arrays
String:
Strings are the values made up of text and can contain letters, numbers, symbols,
punctuation and even emoji. Strings are written in JS insede in double quotation or single
quotation.
Integers/Numbers:
Numbers are the values that can be used in mathematical operations.
There is no need to write integers by using some syntax or rule you can easily write
integers without single or double quotation.
Boolean:
Boolean are the values that have only two situation, either it is true or false, right or
wrong, yes or no.
Arrays:
JS Operators:
Operators are the symbols that are used between different values such as addition,
subtraction, multiplication and division.
Types of JS Operators:
1. Arithmetic Operator
2. Assignment Operator
3. Comparison Operator
4. Logical Operator
Arithmetic Operator:
That are used to perform arithmetic operations are called arithmetic operator. Such as
+,-,*, /, %.
Assignment Operator:
That are used to assign a value to a variable is called assignment operator such as ==, +=.
-=, *= and /=.
Comparison Operator:
Operators that are used to make comparison between two or more values is called
Comparison Operator. Such as >, <, !=, >= and <=.
Logical Operator:
Operators that are used to make logic between two or more values is called Logical
Operators. Such as &&, || and !.
JS Variables:
► Variables are used to store data.
► A variable is a "container" for information you want to store. A variable's value
can change during the script. You can refer to a variable by name to see its value
or to change its value.
► Rules for variable names:
 Variable names are case sensitive
 They must begin with a letter or the underscore character
► strname – STRNAME (not same)
JS PopUp Boxes:
Alert 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 user will have to click "OK" to proceed.
<script>
alert("Hello World!")
</script>
Confirm Box:
 A confirm box is often used if you want that the user should 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.
Prompt Box:
 A prompt box is often used if you want that the user should 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.
 <script> name= prompt(“Enter Name”,’name”);
document.write(name);</script>
Conditional Statement:
Statements that are used to make a choice between two or more statements are called
Conditional Statements. Such as If, If__Else, If__Else__If and Switch statement.

More Related Content

PPTX
Strings in Java
PPTX
Interface in java
PPTX
Web search Technologies
PPTX
Apache web server
PPTX
Asp.NET Validation controls
PPT
Javascript
PPTX
Pumping lemma Theory Of Automata
PPTX
Session tracking in servlets
Strings in Java
Interface in java
Web search Technologies
Apache web server
Asp.NET Validation controls
Javascript
Pumping lemma Theory Of Automata
Session tracking in servlets

What's hot (20)

PPTX
Introduction to php
PPT
Scripting languages
PPS
Xhtml
PPTX
Inheritance in java
PPT
Web controls
PPT
Web Application Introduction
PPTX
Classes objects in java
PDF
Syntax directed translation
PDF
Java I/o streams
PPTX
Specification-of-tokens
PDF
Lecture 01 introduction to compiler
PPT
Introduction to Web Programming - first course
PDF
Bottom up parser
PPTX
Ajax
PPTX
Hypertext transfer protocol (http)
PPTX
HTTP request and response
PPT
Js ppt
PPTX
String in java
PPTX
Java string handling
PPTX
Core Java Tutorials by Mahika Tutorials
Introduction to php
Scripting languages
Xhtml
Inheritance in java
Web controls
Web Application Introduction
Classes objects in java
Syntax directed translation
Java I/o streams
Specification-of-tokens
Lecture 01 introduction to compiler
Introduction to Web Programming - first course
Bottom up parser
Ajax
Hypertext transfer protocol (http)
HTTP request and response
Js ppt
String in java
Java string handling
Core Java Tutorials by Mahika Tutorials
Ad

Similar to Active browser web page (20)

PPTX
Javascript
PPTX
Introduction to Javascript
PPTX
Web programming
PDF
internet Chapter 4-JavascripPrepare a ppt of video compression techniques bas...
PPTX
Basics of Javascript
PPTX
Javascript
PPTX
Learning space presentation1 learn Java script
PPTX
Web designing unit 4
PPTX
JavaScript Training in Ambala ! Batra Computer Centre
PDF
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
DOCX
DOCX
Basic Java script handouts for students
PPTX
Javascript
PPT
Javascript
PDF
PDF
JavaScript Notes 🔥.pdfssssssssssssssssssssssssssssssssssssssssss
PPT
1472251766_demojavascriptppt (1).ppt
PPTX
JavaScript Introduction and Implementation
DOC
Basics java scripts
PPTX
Final Java-script.pptx
Javascript
Introduction to Javascript
Web programming
internet Chapter 4-JavascripPrepare a ppt of video compression techniques bas...
Basics of Javascript
Javascript
Learning space presentation1 learn Java script
Web designing unit 4
JavaScript Training in Ambala ! Batra Computer Centre
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
Basic Java script handouts for students
Javascript
Javascript
JavaScript Notes 🔥.pdfssssssssssssssssssssssssssssssssssssssssss
1472251766_demojavascriptppt (1).ppt
JavaScript Introduction and Implementation
Basics java scripts
Final Java-script.pptx
Ad

Recently uploaded (20)

PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Cell Structure & Organelles in detailed.
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
 
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Pharma ospi slides which help in ospi learning
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Lesson notes of climatology university.
PPTX
Institutional Correction lecture only . . .
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Complications of Minimal Access Surgery at WLH
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Final Presentation General Medicine 03-08-2024.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Cell Structure & Organelles in detailed.
VCE English Exam - Section C Student Revision Booklet
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
 
STATICS OF THE RIGID BODIES Hibbelers.pdf
Cell Types and Its function , kingdom of life
Pharma ospi slides which help in ospi learning
2.FourierTransform-ShortQuestionswithAnswers.pdf
Classroom Observation Tools for Teachers
Renaissance Architecture: A Journey from Faith to Humanism
Lesson notes of climatology university.
Institutional Correction lecture only . . .
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
TR - Agricultural Crops Production NC III.pdf
Anesthesia in Laparoscopic Surgery in India
Complications of Minimal Access Surgery at WLH
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

Active browser web page

  • 1. Active Browser Web Page: • An active web page is a web page where the browser performs the logic instead of web server. For Example when you have got a page where you’re showing share prices, and you update that page after each 5 seconds. There is a solution to update result of that web page without reloading or refreshing the webpage. • It can be possible by using AJAX with JavaScript. In contrast to PHP your browser is able to execute JavaScript, so it is happening without reloading the webpage. • By using Active Web Page everything is happening inside the webpage and there is no need to update or refresh or reload the webpage. • For Example active users on FB are updated automatically using Active Browser Web Page techniques. JavaScript: JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more. JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, Opera. Java Script is a client-side language. It can convert your static HTML page into the Dynamic page. It works on all major browsers. It has many more libraries to make your work more easier. What JS can Do? It can totally change our complete HTML webpage with new elements and contents. It can add dynamics to our webpage such as animation. It can add user interface in our webpage such as get name from prompt box and show it with the user given name. JavaScript can validate form before submitting. It apply restrictions on each field of your webpage form before submitting. Requirements: Basic knowledge of CSS and HTML is must before making a webpage that includes JS. A notepad to write JS code such as Notepad++ and Dreamviewer. And also a browsers to check its output. Types of JS: Internal JS External JS Internal JS: A type of JS in which user writes code inside the HTML body webpage. Internal JS is used for short scripts. Syntax: <script> document.write(“Hello World”); </script> External JS: A type of JS in which user write all JS code in another or separate file is called External JS. In External JS there is no need to write code in HTML body.
  • 2. The code of JS is written in separate files and save with .js extension. And then linked to the HTML head tag by using source of file. It separates HTML and JS code. It makes HTML and JS easier to read and maintain usually when there is a very long or lengthy project. Cached Java Script files can speed up page loads. Syntax: <script src=’link of .js file’></script> Data Type of JS: String Integer Boolean Arrays String: Strings are the values made up of text and can contain letters, numbers, symbols, punctuation and even emoji. Strings are written in JS insede in double quotation or single quotation. Integers/Numbers: Numbers are the values that can be used in mathematical operations. There is no need to write integers by using some syntax or rule you can easily write integers without single or double quotation. Boolean: Boolean are the values that have only two situation, either it is true or false, right or wrong, yes or no. Arrays: JS Operators: Operators are the symbols that are used between different values such as addition, subtraction, multiplication and division. Types of JS Operators: 1. Arithmetic Operator 2. Assignment Operator 3. Comparison Operator 4. Logical Operator Arithmetic Operator: That are used to perform arithmetic operations are called arithmetic operator. Such as +,-,*, /, %. Assignment Operator: That are used to assign a value to a variable is called assignment operator such as ==, +=. -=, *= and /=. Comparison Operator: Operators that are used to make comparison between two or more values is called Comparison Operator. Such as >, <, !=, >= and <=. Logical Operator:
  • 3. Operators that are used to make logic between two or more values is called Logical Operators. Such as &&, || and !. JS Variables: ► Variables are used to store data. ► A variable is a "container" for information you want to store. A variable's value can change during the script. You can refer to a variable by name to see its value or to change its value. ► Rules for variable names:  Variable names are case sensitive  They must begin with a letter or the underscore character ► strname – STRNAME (not same) JS PopUp Boxes: Alert 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 user will have to click "OK" to proceed. <script> alert("Hello World!") </script> Confirm Box:  A confirm box is often used if you want that the user should 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. Prompt Box:  A prompt box is often used if you want that the user should 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.  <script> name= prompt(“Enter Name”,’name”); document.write(name);</script> Conditional Statement: Statements that are used to make a choice between two or more statements are called Conditional Statements. Such as If, If__Else, If__Else__If and Switch statement.