1. Trang chủ
  2. » Công Nghệ Thông Tin

Lecture Web technologies and programming – Lecture 20: History, navigator, screen and form objects - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

10 6 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 388,68 KB

Nội dung

• The history object contains the URLs7. visited by the user (within a browser window).[r]

(1)(2)(3)(4)

Controlling the background

dynamically

Bgcolor

SET For a document

SET For a specific <div>SET the Text Color

Return background color of a specific <div>

element

Return background color of a document:

Background

background color for a documentbackground image for a documentSet a background-image to no-repeatSet the background-image to be fixed

• Change the position of a background-image

(5)

Working with images

Access an Image ObjectOn MouseOut

On MouseOverImage RolloverImage Preview

Image Slide Show

Date object

Digital Clock

(6)

History object

Navigator object

Screen object

Form object

(7)

7

The history object contains the URLs

visited by the user (within a browser window)

The history object is part of the window

object and is accessed through the window.history property

Used to move forward and backward

through the visitor’s browsing history

(8)

8

History object properties:

Length: Returns the number of URLs in the

history list

History object methods:

back(): Loads the previous URL in the

history list

forward(): Loads the next URL in the

history list

go(): Loads a specific URL from the history

list

The window.history object can be

(9)

9

Writes History Length on Webpage

Go Back Function

(10)

10

Body Contents

Call to Go Back Function

Ngày đăng: 01/04/2021, 16:13

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

TÀI LIỆU LIÊN QUAN

w