Found 2416 Articles for HTML

HTML DOM Meter high Property

AmitDiwan
Updated on 01-Aug-2019 06:34:17

58 Views

The HTML DOM Meter high property returns/sets a number corresponding to the high attribute of a element. Use this with low, min and max attributes for better results.SyntaxFollowing is the syntax −Returning value of the high propertymeterElementObject.highValue of the high property setmeterElementObject.high = numberExampleLet us see an example for Meter high property − Live Demo Meter high    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       ... Read More

HTML DOM Meta Object

AmitDiwan
Updated on 01-Aug-2019 06:32:05

120 Views

The HTML DOM Meta Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar metaObject = document.createElement(“META”)PropertiesHere, “metaObject” can have the following collections & properties −PropertyDescriptioncontentIt sets/returns the value of the content attribute of a elementhttpEquivIt sets/returns an HTTP header for the information in the content attribute of elementnameIt sets/returns a name for the information in the content attribute of elementschemeIt sets/returns how the value of the content attribute should be interpreted, but this is not supported in HTML5ExampleLet us see an example for HTML DOM meta element − Live Demo Meta ... Read More

HTML DOM MenuItem Object

AmitDiwan
Updated on 31-Jul-2019 14:34:28

65 Views

The HTML DOM MenuItem Object in HTML represents the element.NOTE − element only supported in Mozilla Firefox Browser.SyntaxFollowing is the syntax −Creating a elementvar menuItemObject = document.createElement(“MENUITEM”)PropertiesHere, menuItemobject can have the following properties −PropertyDescriptioncheckedIt sets/returns (true/false) if the menu item should be checkedcommandIt sets/returns the value of the command attributedefaultIt sets/returns whether the menuItem should be the defaultdisabledIt sets/returns whether the menu item should be disablediconIt sets/returns an image that represents the menuItemlabelIt sets/returns the value of the label attribute of the menuItemradiogroupIt sets/returns the value of the radiogroup attribute of the menuItemtypeIt sets/returns the value of ... Read More

HTML DOM Menu Object

AmitDiwan
Updated on 31-Jul-2019 14:13:17

45 Views

The HTML DOM Menu Object in HTML represents the element.NOTE − element only supported in Mozilla Firefox Browser.SyntaxFollowing is the syntax −Creating a elementvar menuObject = document.createElement(“MENU”)ExampleLet us see an example for HTML DOM Menu element − Live Demo Menu Object    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Menu-Object Current URL: ... Read More

HTML DOM Mark Object

AmitDiwan
Updated on 31-Jul-2019 14:07:48

115 Views

The HTML DOM Mark Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar markObject = document.createElement(“MARK”)ExampleLet us see an example for HTML DOM Mark element − Live Demo HTML DOM Mark    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } HTML-DOM-Mark Full Name:    var divDisplay ... Read More

HTML DOM Map Object

AmitDiwan
Updated on 31-Jul-2019 14:04:54

116 Views

The HTML DOM Map Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar mapObject = document.createElement(“MAP”)PropertiesHere, “mapObject” can have the following collections & properties −Collection/ PropertyDescriptionareasIt returns a collection of all elementsimagesIt returns a collection of all & elementsnameIt sets/returns the value of the name attribute for elementExampleLet us see an example for Map areas collection − Live Demo Map areas collection    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: ... Read More

HTML DOM Location search Property

AmitDiwan
Updated on 01-Aug-2019 06:30:40

79 Views

The Location search property returns/sets a string corresponding to the query parameters for a URL.SyntaxFollowing is the syntax −Returning value of the search propertylocation.searchValue of the protocol property setlocation.search = searchStringExampleLet us see an example for Location search property − Live Demo Location protocol    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Location-protocol Current URL: ... Read More

HTML DOM Location replace() method

AmitDiwan
Updated on 30-Jul-2019 22:30:26

151 Views

The HTML DOM Location replace() method is used for rendering a new document replacing the current document. It also removes the current document URL from document history disabling navigation to old document using ‘back’ button.SyntaxFollowing is the syntax −location.replace(URLString)ExampleLet us see an example for Location replace() property − Live Demo Location replace()    form {       width:70%;       margin: 0 auto;    text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } ... Read More

HTML DOM Location reload() method

AmitDiwan
Updated on 30-Jul-2019 22:30:26

202 Views

The HTML DOM Location reload() method is used for re – rendering the current document. It provides the same functionality as the reload button in the browser.SyntaxFollowing is the syntax −location.reload(forceGetParameter)ParametersHere, “forceGetParameter” can be the following −forceGetParameterDetailstrueIt defines that current document is reloaded from server.falseIt defines that current document is reloaded from browser cache.ExampleLet us see an example for Location reload() property − Live Demo Location reload()    form {       width:70%;       margin: 0 auto;    text-align: center;    }    * {       padding: 2px;       margin:5px;   ... Read More

HTML DOM Location protocol Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

58 Views

The Location protocol property returns/sets a string corresponding to the protocol used for a URL. Protocol can be set to ‘file:’, ‘http:’, ‘https:’, etc..SyntaxFollowing is the syntax −Returning value of the protocol propertylocation.protocolValue of the protocol property setlocation.protocol = protocolStringExampleLet us see an example for Location protocol property − Live Demo Location protocol    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } ... Read More

Advertisements