JavaScript Window Object

The JavaScript window object represents the browser's window or frame where the content is displayed. It serves as the global object, providing methods and properties to control the browser window, such as opening new windows, resizing, navigating between pages, and handling events. Understanding the window object is essential for developing interactive web applications, as it allows you to manage browser behavior programmatically, ensuring a dynamic and user-friendly experience.

Method Description
AlertOpening an alert window with some message
BookMarkAdd to Favorite or Bookmark a link ( URL )
locationRedirecting browser to different page
ConfirmConfirm window to return TRUE of FALSE based on user action OK or CANCEL
Close windowClose a window
Open childOpen a child window with different prameters
Onload()Onload window event to trigger any function as soon as page opens
PromptGetting user entered data by a Prompt window
setInterval()Calling a function repeatedly in a time interval
clearInterval()Resetting the setInterval object
moveBy()Moving window from its current location
moveTo()Moving window To a fixed location
resizeTo()Resizeing window by changing height and width
blur()When we lost focus from a window
focus()Bringing focus to a window
closed()Knowing the window status : closed or not
favoriteAdding page to favorite ro bookmark
Status MsgDisplaying status bar message
Applications using various window and other objects in JavaScript
Application Description
StopwatchIncremental stopwatch by button control
RefreshingReloading parent window while updating child window
child parentPassing user entered data from child window to parent window
pop upDisplaying Popup window in JavaScript
conformationAsking user confirmation before deleting a record ( Are you sure ?)
Screen Object Description
Screen Width, height, colorDepth, pixelDepth of the user screen

JavaScript
Subscribe to our YouTube Channel here



plus2net.com










We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer