JavaScript Window Object

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
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
widthWidth of the user screen
heightHeight of the user screen

screen.colorDepth

Getting the available color depth by usign colorDepth. Here is the code.
document.writeln(" colorDepth = " + screen.colorDepth + "<br>");
Here is your screen colorDepth Available , Check your Demo of screen.colorDepth along with other screen data here

screen.pixelDepth

Getting the available color depth by usign colorDepth. Here is the code.
document.writeln(" pixelDepth = " + screen.pixelDepth + "<br>");
Here is your screen colorDepth Available , pixelDepth is not supported by Internet Explorer but supported by all other major browsers. So it is better to use colorDepth

Subscribe to our mailing list

* indicates required
Subscribe to plus2net
Visitors Rating
Your Rating


Google+

Post Comment This is for short comments only. Use the forum for more discussions.




Subscribe to our mailing list

* indicates required
Subscribe to plus2net
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us
©2000-2017 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer