Page 133 - DCAP202_Fundamentals of Web Programming
P. 133
Description
Version
alert
message and an OK button.
Decodes a string of encoding data using
Implemented in JavaScript 1.2
atob
base-64 encoding.
Takes the browser to the previous URL in
Implemented in JavaScript 1.2
back
the current history list.
Removes focus from a specific window or
blur Name Displays an Alert dialog box with a Implemented in JavaScript 1.0
Implemented in JavaScript 1.0
frame.
Convert a given string to a encoded data
btoa Implemented in JavaScript 1.2
(using base-64 encoding) string.
Cancels a timeout that which was set with
clearInterval
Fundamentals of Web Programming the setInterval method. Implemented in JavaScript 1.2
Cancels a timeout which was set with the
clearTimeout Implemented in JavaScript 1.0
setTimeout method.
Notes close Closes the specified window. Implemented in JavaScript 1.0
Displays a Confirm dialog box with the
confirm specified message and two buttons OK Implemented in JavaScript 1.0
and Cancel.
Search the specified text string in the
find Implemented in JavaScript 1.2
contents of the specified window.
focus Gives focus to a specific window. Implemented in JavaScript 1.1
Takes the browser to the next URL in the
forward Implemented in JavaScript 1.2
current history list.
Returns the browser to the user's specified
home Implemented in JavaScript 1.2
home page.
Move the window relative to it's current
moveBy Implemented in JavaScript 1.2
position in pixels.
Move the top-left corner of the window to
moveTo Implemented in JavaScript 1.2
the given screen coordinates.
open Opens a new web browser window. Implemented in JavaScript 1.0
print Prints the contents of the window. Implemented in JavaScript 1.2
Displays a Prompt dialog box including a
prompt Implemented in JavaScript 1.0
message and an input field.
Resizes an entire window by moving the
resizeBy window's bottom-right corner by the Implemented in JavaScript 1.2
specified number of pixels.
Resizes an entire window to the specified
resizeTo Implemented in JavaScript 1.2
pixel dimensions.
Scrolls the specified window by the
scrollBy Implemented in JavaScript 1.2
number of pixels passed to the method.
Scrolls the viewing area of the window so
scrollTo that the specified point becomes the top- Implemented in JavaScript 1.2
left corner.
Either evaluates an expression or calls a
setInterval Implemented in JavaScript 1.2
function after every specified number of
Self Assessment
Fill in the blanks:
1. For a ........................... window, the parent and top properties refer to the window itself.
2. ........................... method decodes a string of encoding data using base-64 encoding.
3. ...........................evaluates an expression or calls a function after a specified number of
milliseconds.
10.2 Navigator Objects
Contains information about the version, mimetype and what plug-ins users have installed of
Navigator in use.
126 LOVELY PROFESSIONAL UNIVERSITY