Sharon Christine

Sharon Christine

337 Articles Published

Articles by Sharon Christine

Page 30 of 34

HTML DOM Input Button disabled Property

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 215 Views

The HTML DOM input button disabled property returns and alter the value of disabled attribute of an input button in HTML.SyntaxFollowing is the syntax −1. Returning nameobject.disabled2. Modifying nameobject.disabled = true|falseExampleLet us see an example of disabled property − Live Demo HTML DOM disabled Property    body{       text-align:center;    }    .btn{       display:block;       margin:1rem auto;       background-color:#db133a;       color:#fff;       border:1px solid #db133a;       padding:0.5rem;       border-radius:50px;       width:80%;    }    .show-message{       font-weight:bold; ...

Read More

HTML DOM Input Button form Property

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 175 Views

The HTML DOM input button form property returns the reference of the form which enclose the input button.SyntaxFollowing is the syntax −object.formExampleLet us see an example of input button form property − Live Demo

Read More

HTML DOM History length Property

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 161 Views

The HTML DOM History length property returns of URLs in the History list of current window.SyntaxFollowing is the syntax −history.lengthExampleLet us see an example of HTML DOM History length property − Live Demo    body{       text-align:center;    }    .btn{       background-color:lightblue;       border:none;       height:2rem;       border-radius:50px;       width:60%;       margin:1rem auto;    }    .show{       font-size:2rem;       font-weight:bold;       color:orange;    } History length Property Example Click me to get History length    function getHistoryLength(){       var historyLength=history.length;       document.querySelector(".show").innerHTML = historyLength;    } OutputThis will produce the following output −Click on the “blue” button to see the history length of current browser window.

Read More

HTML DOM HTML Object

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 384 Views

The HTML Object represents the element of an HTML document.Let us see how to access HTML object −SyntaxFollowing is the syntax −document.getElementsByTagName(“HTML”)Let us see an example of HTML object −Example Live Demo    body{       text-align:center;    }    .btn{       background-color:lightblue;       border:none;       height:2rem;       border-radius:50px;       width:60%;    margin:1rem auto;    }    .show{       font-size:1rem;       font-weight:bold;       color:orange;       border:2px solid green;       padding:10px;       display:none;    } ...

Read More

HTML DOM Input Hidden name Property

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 198 Views

The HTML DOM input hidden name property returns and alter the value of name attribute of input field of type=”hidden” in an HTML document.SyntaxFollowing is the syntax −1. Returning nameobject.name2. modifying nameobject.name=”text”ExampleLet us see an example of HTML DOM input hidden name property − Live Demo    body{       text-align:center;       background-color:#F19A3E;       color:#fff;    }    .btn{       background-color:#3C787E;       border:none;       height:2rem;       border-radius:50px;       width:60%;       margin:1rem auto;       display:block;       color:#fff;   ...

Read More

HTML DOM Input Hidden value Property

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 336 Views

The HTML DOM input hidden value property returns and modify the content of value attribute of input field of type=”hidden” in an HTML document.SyntaxFollowing is the syntax −1. Returning valueobject.value2. Modifying valueobject.value=”text”ExampleLet us see an example of HTML DOM input hidden value property − Live Demo    body{       text-align:center;       background-color:#F19A3E;       color:#fff;    }    .btn{       background-color:#3C787E;       border:none;       height:2rem;       border-radius:50px;       width:60%;       margin:1rem auto;       display:block;       color:#fff;   ...

Read More

HTML DOM Input Month defaultValue Property

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 157 Views

The HTML DOM input month defaultValue property returns and modify the default value of input field of type=”month” in a HTML document.SyntaxFollowing is the syntax −1. Returning default valueobject.defaultValue2. Modifying default valueobject.defaultValue=valueHere, value is any date in form of string for example “2019-03”ExampleLet us see an example of HTML DOM input month defaultValue property − Live Demo    html{       height:100%;    }    body{       text-align:center;       color:#fff;       background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%)       center/cover no-repeat;       height:100%;    }    p{   ...

Read More

HTML DOM Input Month disabled Property

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 185 Views

The HTML DOM input month disabled property returns and modify whether the input field of type=”month” in a HTML document is disabled or not.SyntaxFollowing is the syntax −1. Returning disabledobject.disabled2. Modifying disabledobject.disabled = true | falseExampleLet us see an example of HTML DOM input month defaultValue property − Live Demo    html{       height:100%;    }    body{       text-align:center;       color:#fff;       background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%)       center/cover no-repeat;       height:100%;    }    p{       font-weight:700;       font-size:1.2rem; ...

Read More

How to make the corners of a button round in iOS?

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 2K+ Views

You might come across a scenarios where you received a UI where the buttons are rounded, and you might wonder how to do that? So here we will see how to make corners of a button round.We will be seeing both the ways to make the button rounded, one using Storyboard and another programmatically.Let’s get started! First we will make the corners of button rounded using Storyboard.Step 1 − Open Xcode → New Projecr → Single View Application → Let’s name it “RoundedButton”Step 2 − Open Main.storyboard and add a button as show belowStep 3 − Now select the button ...

Read More

HTML DOM Input Month required Property

Sharon Christine
Sharon Christine
Updated on 30-Jul-2019 143 Views

The HTML DOM input month required property returns and modify whether the input month field must be filled out before submitting the form.SyntaxFollowing is the syntax −1. Returning requiredobject.required2. Modifying requiredobject.required = true | falseExampleLet us see an example of HTML DOM input month required property − Live Demo    html{       height:100%;    }    body{       text-align:center;       color:#fff;       background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%)       center/cover no-repeat;       height:100%;    }    p{       font-weight:700;       font-size:1.1rem;   ...

Read More
Showing 291–300 of 337 articles
« Prev 1 28 29 30 31 32 34 Next »
Advertisements