1. Trang chủ
  2. » Trung học cơ sở - phổ thông

Lecture Web technologies and programming – Lecture 18: JavaScript DOM - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

10 8 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 641,77 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

user input or display small amounts of text to the user by using dialog boxes.. • These dialog boxes appear as separate[r]

Trang 1

1

Trang 2

2

Trang 3

What is JavaScript?

3

Trang 4

Dialog boxes in JavaScript

4

Trang 5

JavaScript provides the ability to pickup user input or display small amounts of text to the user by using dialog boxes

These dialog boxes appear as separate windows and their content depends on the information provided by the user

5

Trang 6

JavaScript has three kind of popup boxes:

6

Trang 7

An alert box is simply a small message

box that pops up and gives the user some information

An alert dialog box is mostly used to give

a warning message to the users

When an alert box pops up, the user will have to click "OK" to proceed

Syntax:

7

Trang 8

Start of Function

Displays an Alert Box

Calling the Function

8

Trang 9

Alert Box

9

Trang 10

A 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

Ngày đăng: 01/04/2021, 18:14

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w