AmitDiwan has Published 11367 Articles

HTML DOM Style backgroundImage Property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 08:28:06

79 Views

The backgroundImage property is used for setting or returning a background image for an element.SyntaxFollowing is the syntax for −Setting the backgroundImage property:object.style.backgroundImage = "url('URL')|none|initial|inherit"ValuesThe above property values are explained as follows −Sr.NoValues & Description1url('URL')For specifying the image file location.2noneFor specifying no background image to be used and it is ... Read More

HTML DOM Geolocation coordinates property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 07:28:46

104 Views

The HTML DOM Geolocation coordinates property is used for getting a user’s device position and altitude on earth. The user have to approve that he wants to give coordinates before this property could work. This is done so that a user’s privacy isn’t compromised. This can be used for tracking ... Read More

HTML DOM fullscreenEnabled() method

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 07:20:46

47 Views

The HTML DOM fullscreenEnabled() method is used for specifying if the fullscreen mode is available or not for the current document. Its return type is boolean and is a read-only property. True is returned if the fullscreen mode is available otherwise it returns false. Different prefixes are used to make ... Read More

HTML DOM Form target property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 07:00:30

173 Views

The HTML DOM Form target property is used for specifiying where the response should be displayed after the form data has been submitted. It could display in a new tab, current tab or a new window. The form target property set or gets the target attribute value.SyntaxFollowing is the syntax ... Read More

HTML DOM Storage removeItem() method

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 06:05:15

104 Views

The HTML DOM Storage removeItem() method is used for removing a storage object item by passing a given key name.SyntaxFollowing is the syntax for Storage removeItem() method −localStorage.removeItem(keyname);ORsessionStorage.removeItem(keyname);Here, keyname is of type string and represents the name of the item to be removed.ExampleLet us look at the example for the ... Read More

HTML DOM Storage key() method

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 05:59:38

74 Views

The HTML DOM Storage key() method is used for returning the key name at a given index in a storage object. The index is passed as a parameter to key() method. The storage object can be a session object or localStorage object.SyntaxFollowing is the syntax for −Storage key() method using ... Read More

HTML DOM Storage Event

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 05:52:26

108 Views

The HTML DOM storage event triggers when there has been a change in the storage area of the window. The storage event is triggered only if the other window makes the storage area change for a window. This event doesn’t bubble and is cancellable too.SyntaxFollowing is the syntax for −window.addEventListener("storage", ... Read More

HTML DOM small object

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 12:45:56

111 Views

The HTML DOM small object is associated with HTML element. We can create and access small element using the createElement() and getElementById() method respectively.SyntaxFollowing is the syntax for −Creating a small object −var s= document.createElement("SMALL");ExampleLet us look at an example for the small object − Small object ... Read More

HTML DOM Input Text readOnly property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 12:36:03

378 Views

The HTML DOM Input Text readOnly property is used for setting or returning if the input text field is read-only or not. The readOnly property makes the element non-editable but it can still be focused by tab or click. If there is a default value inside a read-only element then ... Read More

HTML DOM Input Text placeholder property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 12:33:45

202 Views

The HTML DOM Input Text placeholder property is used for setting or returning the placeholder attribute value of an input text field. The placeholder property is used for giving the web page users a hint about the input element by showing a text inside the input field before the user ... Read More

Advertisements