{"id":7590,"date":"2013-01-28T12:03:20","date_gmt":"2013-01-28T12:03:20","guid":{"rendered":"http:\/\/vskills.in\/certification\/tutorial\/?p=7590"},"modified":"2024-04-12T14:17:06","modified_gmt":"2024-04-12T08:47:06","slug":"object-hierarchy-and-predefined-objects","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/","title":{"rendered":"Object Hierarchy and predefined objects"},"content":{"rendered":"<p>The image below shows the Object Hierarchy:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-51493\" src=\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png\" alt=\"Object Hierarchy and predefined objects\" width=\"615\" height=\"432\"><\/p>\n<p>&nbsp;<\/p>\n<p>The <strong>Object Hierarchy<\/strong> helps determine the right <strong>Dot Syntax<\/strong> for relationships between objects as<\/p>\n<p>document.formName.textBoxName.value<br>\nIt is easy to follow the path to the text object of the form using the object hierarchy shown above.<\/p>\n<p>A table of the most commonly used JavaScript objects with all of their properties, methods and event handlers are listed below:<\/p>\n<table width=\"87%\">\n<thead>\n<tr>\n<td width=\"13%\"><strong>Object<\/strong><\/td>\n<td width=\"33%\"><strong>Properties<\/strong><\/td>\n<td width=\"25%\"><strong>Methods<\/strong><\/td>\n<td width=\"24%\"><strong>Event Handlers<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"13%\">Window<\/td>\n<td width=\"33%\">defaultStatus, frames, opener, parent, scroll, self, status, top, window<\/td>\n<td width=\"25%\">Alert, blur, close, confirm, focus, open,<br>\nprompt,clearTimeout ,setTimeout<\/td>\n<td width=\"24%\">onLoad, onUnload, onBlur, onFocus<\/td>\n<\/tr>\n<tr>\n<td width=\"13%\">Frame<\/td>\n<td width=\"33%\">defaultStatus, frames, opener, parent, scroll, self,<br>\nstatus, top, window<\/td>\n<td width=\"25%\">alert, blur, close, confirm, focus, open<br>\nprompt, clearTimeout,<br>\nsetTimeout<\/td>\n<td width=\"24%\">none<\/td>\n<\/tr>\n<tr>\n<td width=\"13%\">Location<\/td>\n<td width=\"33%\">hash, host, hostname, href,<br>\npathname, por, protocol,<br>\nsearch<\/td>\n<td width=\"25%\">reload()<br>\nreplace()<\/td>\n<td width=\"24%\">none<\/td>\n<\/tr>\n<tr>\n<td width=\"13%\">History<\/td>\n<td width=\"33%\">length, forward, go<\/td>\n<td width=\"25%\">back<\/td>\n<td width=\"24%\">none<\/td>\n<\/tr>\n<tr>\n<td width=\"13%\">Navigator<\/td>\n<td width=\"33%\">appCodeName, appName, appVersion, mimeTypes,<br>\nplugins, userAgent<\/td>\n<td width=\"25%\">javaEnabled<\/td>\n<td width=\"24%\">none<\/td>\n<\/tr>\n<tr>\n<td width=\"13%\">document<\/td>\n<td width=\"33%\">alinkColor, anchors, applets,<br>\narea, bgColor, cookie,<br>\nfgColor, forms, images,<br>\nlastModified, linkColor, links, location, referrer, title,<br>\nvlinkColor<\/td>\n<td width=\"25%\">clear, close, open, write, writeln<\/td>\n<td width=\"24%\">none<\/td>\n<\/tr>\n<tr>\n<td width=\"13%\">image<\/td>\n<td width=\"33%\">border, complete, height, hspace, lowsrc, name, src,<br>\nvspace, width<\/td>\n<td width=\"25%\">none<\/td>\n<td width=\"24%\">none<\/td>\n<\/tr>\n<tr>\n<td width=\"13%\">form<\/td>\n<td width=\"33%\">action, elements, encoding, FileUpload, method, name,<br>\ntarget<\/td>\n<td width=\"25%\">submit, reset<\/td>\n<td width=\"24%\">onSubmit, onReset<\/td>\n<\/tr>\n<tr>\n<td width=\"13%\">text<\/td>\n<td width=\"33%\">defaultValue, name, type, value<\/td>\n<td width=\"25%\">focus, blur, select<\/td>\n<td width=\"24%\">onBlur, onCharge,<br>\nonFocus,onSelect<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Predefined Objects<\/strong> \u2013 They include Array, Boolean, Date, Function, Math, Number, RegExp, and String.<\/p>\n<p><u>Array Object<\/u> &#8211; JavaScript does not have an explicit array data type. However, use the predefined Array object and its methods to work with arrays in applications. The Array object has methods for manipulating arrays in various ways, such as joining, reversing, sorting them. It has a property for determining the array length and other properties for use with regular expressions.<\/p>\n<p><u>Boolean Object<\/u> &#8211; Use the predefined Boolean object to convert a non-boolean value to a boolean value. Use the Boolean object any place JavaScript expects a primitive boolean value. JavaScript returns the primitive value of the Boolean object by automatically invoking the valueOf method.<\/p>\n<p><u>Date Object<\/u> &#8211; JavaScript does not have a date data type. Use the Date object and its methods to work with dates and times in applications. The Date object has a large number of methods for setting, getting, and manipulating dates. It does not have any properties.<\/p>\n<p><u>Function Object<\/u> &#8211; The predefined Function object specifies a string of JavaScript code to be compiled as a function.<\/p>\n<p><u>Number Object<\/u> &#8211; The Number object has properties for numerical constants, such as maximum value, not-a-number, and infinity. The values of these properties cannot be changed.<\/p>\n<p><u>RegExp Object<\/u> &#8211; The RegExp object enables working with regular expressions.<\/p>\n<p><u>String Object<\/u> &#8211; JavaScript does not have a string data type. However, use the String object and its methods to work with strings in applications. The String object has a large number of methods for manipulating strings.<\/p>\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/dhtml-and-javascript-developer\/\" target=\"_blank\" rel=\"noreferrer noopener\">Back to Tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The image below shows the Object Hierarchy: &nbsp; The Object Hierarchy helps determine the right Dot Syntax for relationships between objects as document.formName.textBoxName.value It is easy to follow the path to the text object of the form using the object hierarchy shown above. A table of the most commonly used JavaScript objects with all of&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[3352],"tags":[2802],"class_list":["post-7590","page","type-page","status-publish","hentry","category-dhtml-and-javascript","tag-object-hierarchy-and-predefined-objects"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Object Hierarchy and predefined objects - Tutorial<\/title>\n<meta name=\"description\" content=\"Object Hierarchy and predefined objects. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Object Hierarchy and predefined objects - Tutorial\" \/>\n<meta property=\"og:description\" content=\"Object Hierarchy and predefined objects. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:47:06+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/\",\"name\":\"Object Hierarchy and predefined objects - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png\",\"datePublished\":\"2013-01-28T12:03:20+00:00\",\"dateModified\":\"2024-04-12T08:47:06+00:00\",\"description\":\"Object Hierarchy and predefined objects. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#primaryimage\",\"url\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png\",\"contentUrl\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Object Hierarchy and predefined objects\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Object Hierarchy and predefined objects - Tutorial","description":"Object Hierarchy and predefined objects. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/","og_locale":"en_US","og_type":"article","og_title":"Object Hierarchy and predefined objects - Tutorial","og_description":"Object Hierarchy and predefined objects. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:47:06+00:00","og_image":[{"url":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/","name":"Object Hierarchy and predefined objects - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#primaryimage"},"thumbnailUrl":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png","datePublished":"2013-01-28T12:03:20+00:00","dateModified":"2024-04-12T08:47:06+00:00","description":"Object Hierarchy and predefined objects. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#primaryimage","url":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png","contentUrl":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Object-Hierarchy-and-predefined-objects.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/object-hierarchy-and-predefined-objects\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Object Hierarchy and predefined objects"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/7590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=7590"}],"version-history":[{"count":8,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/7590\/revisions"}],"predecessor-version":[{"id":82887,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/7590\/revisions\/82887"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=7590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=7590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=7590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}