0% found this document useful (0 votes)
18 views2 pages

Function and Procedure

This document discusses various JavaScript concepts including: - The document.write() function which prints output to the web browser. - Input and message boxes which take input or display messages in the browser. - Arithmetic, comparison, logical, and concatenation operators. - Common control structures like if/else statements, nested if statements, and different types of loops. - Events like onclick, onsubmit, onmouseover that are triggered by user interaction. - The syntax for defining functions in JavaScript.

Uploaded by

Vikash Sinha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

Function and Procedure

This document discusses various JavaScript concepts including: - The document.write() function which prints output to the web browser. - Input and message boxes which take input or display messages in the browser. - Arithmetic, comparison, logical, and concatenation operators. - Common control structures like if/else statements, nested if statements, and different types of loops. - Events like onclick, onsubmit, onmouseover that are triggered by user interaction. - The syntax for defining functions in JavaScript.

Uploaded by

Vikash Sinha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Document.write()..

function is used to print output message of web browser

Msg box: it is used to print output msg on web browser in small dialog box

Input box: it is used to take input on web browser

Arithmetic operator: + , -, *, /, \

Composition : > ,< ,>,= ,<,=, =,<>

Logical: AND , OR , NOT

Concatenation: + , &

Desion making :-

 If ….else statement
 If ….elseif …else
 Nested if

Looping

1. While ….wend
2. Do….while
3. For…next

Event :
V.B script interaction with HTML is handled that occur when the user
Or browser manipulates
in page.
There are various page on such as loading page pressing any key click any button.
1. On click-this is the most use event time which occur when a user clicks mouse left
button .
2. On submit – this event occur when we try to submit any form.
3. Onmouse over-this two event type which help to create effects with images on event
with the takes as well. On ouse over event occurs when we bring mouse over any
element on mouse out occur. when we take mouse out .
4. It generates when a mouse double click .
5. On focus-it generates when the element gets focus.
6. On blur- It generates when the element focus .

Function and procedure

Function
Syntax:-

Function <function name> (parameter list)

Call function:- Used to calling function.

You might also like