1/31/2024 0 Comments Screeny javascript![]() document.write(“Color depth is:” + lorDepth) line specifies number of bits per pixel used for colors on the screen.document.write(“Avaialble height is:” + screen.availHeight) line specifies available height of the screen in the pixels.document.write(“Avaialble width is:” + screen.availWidth) line specifies available width of the screen in the pixels.document.write(“Total width is:” + screen.width) line specifies width of the screen.document.write(“Total height is:” + screen.height) line returns height of the screen.tag is used to define client side script which uses attribute type for specifying MIME type.availTop: It returns available area of the top side of the screen for application windows.ĭocument.write("Total height is:" + screen.height + "") ĭocument.write("Total width is:" + screen.width + "") ĭocument.write("Avaialble width is:" + screen.availWidth + "") ĭocument.write("Avaialble height is:" + screen.availHeight + "") ĭocument.write("Color depth is:" + lorDepth + "") ĭocument.write("Color resultion is:" + screen.pixelDepth + "").availLeft: It returns available area of the left side of the screen for application windows.height: It returns vertical resolution of the screen in pixels.width: It returns horizontal resolution of the screen in pixels.pixelDepth: It retrieves number of bits per pixel used for screen color resolution on the screen.colorDepth: It retrieves number of bits per pixel used for colors on the screen.availHeight: It returns available height of the screen in the pixels for application windows.availWidth: It returns available width of the screen in the pixels for application windows. ![]() The following are the properties of Screen object: It is special object for inspecting properties of the screen on which the current window is being rendered. There is no public standard that applies to the screen object, but all major browsers support it. The screen object specifies information about dimensions of the user’s screen and display settings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |