AmitDiwan has Published 10744 Articles

HTML DOM Progress max Property

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 10:01:51

86 Views

The HTML DOM progress max property returns and alter the value of the max attribute of a progress element in an HTML document.SyntaxFollowing is the syntax −1. Returning maxobject.max2. Modifying maxobject.max = “number”ExampleLet us see an example of progress max property − Live Demo    html{     ... Read More

HTML DOM Select form Property

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 09:59:13

187 Views

The HTML DOM select form property returns the reference of the form that contain the drop-down list.SyntaxFollowing is the syntax −object.formExampleLet us see an example of HTML DOM select form property − Live Demo    body{       text-align:center;       background-color:#363946;       color:#fff; ... Read More

HTML DOM Select autofocus Property

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 09:58:20

119 Views

The HTML DOM select autofocus property returns and modify whether the drop-down list should get focused or not when page load.SyntaxFollowing is the syntax −1. Returning autofocusobject.autofocusModifying autofocusobject.autofocus = true | falseExampleLet us see an example of HTML DOM select autofocus property − Live Demo HTML DOM autofocus property ... Read More

HTML DOM Select selectedIndex Property

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 09:56:58

184 Views

The HTML DOM select selectedIndex property returns and modify the index of selected option of the drop-down list in an HTML document.SyntaxFollowing is the syntax −Returning selectedIndexobject.selectedIndexModifying selectedIndexobject.selectedIndex = “number”ExampleLet us see an example of HTML DOM select selectedIndex property − Live Demo    html{       ... Read More

HTML DOM Option disabled Property

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 09:54:41

151 Views

The HTML DOM option disabled property returns and modify whether the option element is disabled or not.SyntaxFollowing is the syntax −1. Returning disabledobject.disabled2. Modifying disabledobject.disabled = true | falseExampleLet us see an example of HTML DOM option disabled property − Live Demo    html{       height:100%; ... Read More

HTML DOM Option index Property

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 09:53:21

140 Views

The HTML DOM option index property returns and modify the index position of an option in the HTML document.SyntaxFollowing is the syntax −Returning indexobject.indexModifying indexobject.index = “number”ExampleLet us see an example of HTML option index property − Live Demo    html{       height:100%;    }   ... Read More

HTML DOM Progress Object

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 09:51:24

193 Views

The DOM Progress Object represent the element of an HTML document.Let us create progress object −SyntaxFollowing is the syntax −document.createElement(“PROGRESS”);PropertiesFollowing are the properties of progress object −PropertyExplanationmaxIt returns and alter the value of the max attribute of a progress element in an HTML document.positionIt returns the value of position ... Read More

How does the array_diff_key() work in PHP?

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 08:39:46

161 Views

It is an inbuilt function that compares the keys of one or more arrays, and returns their difference.Syntax of the array_diff_key functionarray array_diff_key($array1, $array2, ..)The function can take two or more array names as parameters, and compares the first array with the remaining arrays.Example Live DemoOutputArray (    [91] => Micheal ... Read More

What is the significance of ‘^’ in PHP?

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 08:37:23

415 Views

The ‘^’ is a bitwise operator in PHP, i.e XOR (exclusive OR) bitwise operator, that is used to display the ASCII values of variables in question. For example − For evert bit in the value, the ^ operator checks if that bit is the same in the other value too. ... Read More

How to delete an element from an array in PHP and re-index the array?

AmitDiwan

AmitDiwan

Updated on 01-Jul-2020 08:35:38

2K+ Views

The ‘unset’ function can be used to remove an element from the array and use the ‘array_values’ function that resets the indices of the array.Example Live DemoOutputThe array is array(5) {    [0]=>    string(4) "this"    [1]=>    string(2) "is"    [2]=>    string(1) "a"    [3]=>    string(6) "sample" ... Read More

Advertisements