HTML DOM Script defer Property Last Updated : 22 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The Script defer Property is used to set or return whether the script should be executed after the page has finished parsing. This Property is used to reflect the defer attribute of a <script> Tag. This attribute is only used for External JavaScript File. Syntax: It Returns the defer property.scriptObject.deferIt is used to set the defer propertyscriptObject.defer = true|false Property Values: It contains the Boolean value which specifies whether a script should be executed when the page has finished parsing, or not true: The script is executed when the page has finished parsingfalse: The script will not be executed when the page has finished parsing. Return Values: It returns a boolean value, and returns true if the script is executed after the loading of the page is finished. Example: This Example returns the defer Property. HTML <!DOCTYPE html> <html> <head> <title> DOM script defer Property </title> </head> <body style="text-align:center;"> <h1> GeeksForGeeks </h1> <h2> DOM script defer property </h2> <script id="myGeeks" type="text/javascript" src="my_script.js" defer> </script><br> <button onclick="Geeks()">Submit</button> <h2 id="demo"></h2> <script> function Geeks() { let x = document.getElementById("myGeeks").defer; document.getElementById("demo").innerHTML = x; } </script> </body> </html> Output: Comment More infoAdvertise with us Next Article HTML DOM Script defer Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML Web technologies HTML-DOM Similar Reads HTML DOM Script async Property The DOM Script async property is used to set or return whether a script should be executed asynchronously or not. This property is used to reflect the async attribute. This attribute only works for the external script. There are the following ways that the external script could be executed: The scri 2 min read HTML DOM Script src Property The DOM Script src Property is used to set or return the value of the src attribute of an <script> element. The src attribute specifies the URL of the External Javascript file. Syntax: It returns the src property:scriptObject.srcIt is used to set the src property:scriptObject.src = URL Propert 1 min read HTML DOM Script text Property The HTML DOM Script text Property is used to set or return the content of the <script> element. Syntax: It Returns the text property:scriptObject.textIt is used to set the text property:scriptObject.text = contents Property Values: It contains the value i.e contents that specify the content of 2 min read HTML DOM Script type Property The DOM Script type Property is used to set or return the value of the type attribute of a <script> element. The type attribute is used to specify the MIME type of a script. and identify the content of the <script> Tag. It has a Default value which is "text/javascript". Syntax: It is use 2 min read HTML | DOM Script Object The DOM Script Object is used to represent the HTML <script> element. The script element is accessed by getElementById(). Properties: async: It is used to specify the script is executed asynchronously. charset: It is used to specify the character encoding used in an external script file. defer 2 min read HTML DOM designMode Property The DOM designMode property in HTML is used to specify whether the document is editable or not. It can also be used to set the document editable. Syntax:Set: This property is used to set whether the document is editable or not.document.designMode = "on|off";Get: This property is used to return wheth 2 min read HTML | DOM Style counterReset Property The Style counterReset property in HTML DOM is used to create or reset counters. This property is used with the counterincrement property and the content property.Syntax: It is used to return the counterReset property. object.style.counterResetIt is used to set the counterReset property. object.styl 1 min read HTML DOM readyState Property The readyState property in HTML is used to return the loading status of the current document. This property is used for read-only. Syntax:document.readyStateReturn Value: It returns a string value which is used to define the status of the current document. The one of five status are listed below:uni 2 min read HTML DOM Style transition Property The HTML DOM Style Property is used to change the appearance of any DIV element. It changes the appearance whenever the mouse hovers over that element. SyntaxFor return the transition property:object.style.transitionFor set the transition property:object.style.transition = "property duration timing 2 min read Like