HTML DOM HashChangeEvent

AmitDiwan
Updated on 19-Feb-2021 09:17:50

159 Views

The HTML DOM HashChangeEvent is a type of interface used for representing those events that fire whenever the # part of the URL has been modified.PropertiesFollowing are the properties for the HashChangeEvent −PropertyDescriptionnewURLTo return the document URL after the hash has been modified.oldURLTo returns the document URL before the hash was changedSyntaxFollowing is the syntax for HashChangeEvent.event.eventPropertyHere, eventProperty is one of the above two properties.ExampleLet us look at an example for the HashChangeEvent.Live Demo HashChangeEvent example Change the hash by clicking the below button CHANGE    function changeHash() {       location.hash = "NEWHASH";   ... Read More

HTML DOM Header Object

AmitDiwan
Updated on 19-Feb-2021 09:16:25

2K+ Views

The HTML DOM header object is associated with the HTML element that introduced in HTML 5. Using the header object we can create and access element using the createElement() and getElementById() method respectively.SyntaxFollowing is the syntax for −Creating a header object −var p = document.createElement("HEADER");ExampleLet us look at an example for the HTML DOM header object −Live Demo Header object example Create a header element by clicking the below button CREATE    function headerCreate() {       var h = document.createElement("HEADER");       document.body.appendChild(h);       var h2 = document.createElement("H2");     ... Read More

HTML DOM Heading Object

AmitDiwan
Updated on 19-Feb-2021 09:15:01

518 Views

The HTML DOM Heading object is associated with the HTML heading elements ranging from to . Using the heading object we can create and access heading element with the createElement() and getElementById() method respectively.SyntaxFollowing is the syntax for −Creating a Heading object −var p = document.createElement("H1");ExampleLet us look at an example for the Heading object −Live Demo Heading object example Create a h1 element by clicking the below button CREATE    function createH1() {       var h = document.createElement("H1");       var txt = document.createTextNode("H1 element has been created");       h.appendChild(txt); ... Read More

HTML DOM Input Number Type Property

AmitDiwan
Updated on 19-Feb-2021 09:11:44

238 Views

The HTML DOM Input number type property is associated with the input element having its type=”number”. It will always return number for the input number element.SyntaxFollowing is the syntax for number type property −numberObject.typeExampleLet us look at an example for the HTML DOM Input Number type property −Live Demo Input Number type property PHONE NO: Get the above element type by clicking the below button Get Type    function getType() {       var t = document.getElementById("NUMBER1").type;       document.getElementById("Sample").innerHTML = "The type for the input field is : "+t;    } ... Read More

HTML DOM Input Number Value Property

AmitDiwan
Updated on 19-Feb-2021 09:10:08

389 Views

The HTML DOM Input number value property is associated with the input element having type=”Number” and having the value attribute. This property is used for returning the value of input element value attribute or to set it. This property is used for specifying a default value for elements and it also changes its value to user input.SyntaxFollowing is the syntax for −Setting the value property −numberObject.value = number;Here, number is used for specifying the value for the number field.ExampleLet us look at an example for the input Number value property −Live Demo Input Number Value property PHONE NO: ... Read More

HTML DOM Input Password DefaultValue Property

AmitDiwan
Updated on 19-Feb-2021 09:07:25

306 Views

The HTML DOM Input Password defaultValue property is used for setting or getting the defaultValue of a password field. The defaultValue of an element is the value assigned to the value attribute. The difference between value property and defaultValue property is that the defaultValue property retains the original default value specified while the value property change based on the user input in the input field.SyntaxFollowing is the syntax to set the defaultValue property −passwordObject.defaultValue = valueHere, “value” is the password field default value.ExampleLet us look at an example for the Input Password defaultValue property −Live Demo Input Password ... Read More

HTML DOM Input Password Disabled Property

AmitDiwan
Updated on 19-Feb-2021 09:05:34

176 Views

The HTML DOM Input Password disabled property is used for setting or returning whether the password field is disabled or not. It uses boolean values with true representing the element should be disabled and false otherwise. The disabled property is set to false by default. The disabled element is greyed out by default and is unclickable.SyntaxFollowing is the syntax for −Setting the disabled property −passwordObject.disabled = true|false;Here, true=password field is disabled and false=the password field is not disabled. It is false by default.ExampleLet us look at an example for the Input password disabled property −Live Demo Input Password ... Read More

HTML DOM Input Password Form Property

AmitDiwan
Updated on 19-Feb-2021 09:01:52

177 Views

The HTML DOM Input Password form property is used for returning the form reference that contains the input password field. If the input password field is outside the form then it will simply return NULL. This property is read-only.SyntaxFollowing is the syntax for input password form property.passwordObject.formExampleLet us look at an example for the Input Password form property −Live Demo Input Password form Property Password: Get the form id by clicking on the below button GET FORM    function formId() {       var P=document.getElementById("PASS").form.id;       document.getElementById("Sample").innerHTML = "The id ... Read More

What is TensorFlow and How Keras Works with TensorFlow to Create Neural Networks

AmitDiwan
Updated on 19-Feb-2021 08:59:18

478 Views

Tensorflow is a machine learning framework that is provided by Google. It is an open-source framework used in conjunction with Python to implement algorithms, deep learning applications and much more.TensorFlow is used in research and for production purposes and has optimization techniques that help in performing complicated mathematical operations quickly. This is because it uses NumPy and multi-dimensional arrays. These multi-dimensional arrays are also known as ‘tensors’. The framework supports working with deep neural network. It is highly scalable, and comes with many popular datasets. It uses GPU computation and automates the management of resources. It comes with multitude of ... Read More

HTML DOM Input Password Maxlength Property

AmitDiwan
Updated on 19-Feb-2021 08:11:34

406 Views

The HTML DOM Input Password maxlength property is used for setting or returning the maxlength attribute of the input password field. The maxLength property specifies the maximum number of characters you can type in a password field.SyntaxFollowing is the syntax for −Setting the maxLength property −passwordObject.maxLength = integerHere, integer specifies the maximum number of characters that can be typed in the password field.ExampleLet us look at an example for the maxLength form property −Live Demo Input Password maxLength Property Password: Increase the maximum number of characters to be entered for the above field by clicking below button ... Read More

Advertisements