
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 10483 Articles for Web Development

653 Views
The HTML DOM Footer object is associated with the HTML element. The element is a type of semantic tag and introduced in the HTML5. Using the Footer object we can create and get the element using the createElement() and getElementById() method respectively.SyntaxFollowing is the syntax for −Creating a footer object −var p = document.createElement("FOOTER");ExampleLet us look at an example of the Footer object −Live Demo function createFoot() { var f = document.createElement("FOOTER"); document.body.appendChild(f); var p = document.createElement("P"); var txt = document.createTextNode("Copyright ... Read More

135 Views
The HTML DOM Figure object is used for reperesenting the HTML element. We can dynamically create and access a figure element using the figure object.SyntaxFollowing is the syntax for creating a Figure object −var p = document.createElement("FIGURE");ExampleFollowing is how you can create Figure object − function createFigure(){ var fig = document.createElement("FIGURE"); fig.setAttribute("id", "Figure1"); document.body.appendChild(fig); var i = document.createElement("IMG"); i.setAttribute("src", "https://www.tutorialspoint.com/servlets/images/servletsmini-logo.jpg"); i.setAttribute("width", "250"); i.setAttribute("height", "200"); i.setAttribute("alt", "Eiffel Tower"); fig.appendChild(i); ... Read More

116 Views
The HTML DOM Figcaption object is used for representing the HTML5 element. You can create or access a figcaption element using createElement() and getElementById() method respectively.SyntaxFollowing is the syntax for −Creating a Figcaption object −var p = document.createElement("FIGCAPTION");ExampleLet us look at an example for the Figcaption object −Live Demo function createCaption() { var caption = document.createElement("FIGCAPTION"); var txt = document.createTextNode("Learn Java Servlets"); caption.appendChild(txt); var f=document.getElementById("Figure1"); f.appendChild(caption); } Caption Create a caption for the below image by ... Read More

156 Views
The HTML DOM Fieldset type property is used for returning the fieldset element type. It will always be of type fieldset for a fieldset element. It is a read-only property.SyntaxFollowing is the syntax for Fieldset type property −fieldsetObject.typeExampleLet us take a look at an example for the Fieldset type property −Live Demo function FieldType() { var field = document.getElementById("FieldSet1").type; document.getElementById("Sample").innerHTML = "The fieldset element is of type "+field; } Sample FORM User Data: Name: Address: Age: GET TYPE ... Read More

166 Views
The HTML DOM Fielset object represents the element.PropertiesFollowing are the properties for Fieldset object −PropertyDescriptiondisabledTo set or return if the fieldset is disabled, or notformTo return the reference to the form that contains the given fieldset.nameTo set or return the name attribute value of a fieldset.typeTo return the fieldset element type.SyntaxFollowing is the syntax for −Creating a fieldset element −var p = document.createElement("FIELDSET");ExampleLet us look at an example for the HTML DOM Fieldset object −Live Demo function createField() { var f = document.createElement("FIELDSET"); var txt = document.createTextNode("FIELDSET element created"); ... Read More

225 Views
The HTML DOM Fieldset name property is used for getting or setting the name attribute value of a element. The name attribute helps in identifying the form data after the form has been submitted or for simply referencing the form elements.SyntaxFollowing is the syntax for −Setting the fieldset name property −fieldsetObject.name = nameHere, name specifies the fieldset name.ExampleLet us look at an example for the Fieldset name property −Live Demo function fieldName() { var field = document.getElementById("FieldSet1").name; document.getElementById("Sample").innerHTML = "The fieldset name is "+field; } ... Read More

176 Views
The HTML DOM Fieldset form property returns the form reference of the type form object. This is for the element that is present inside that given form. It is a read-only property. If the specified fieldset isn’t present inside the form then null is returnedSyntaxFollowing is the syntax for the fieldset form property −fieldsetObject.formExampleLet us look at an example for the fieldset form property − function formId() { var field = document.getElementById("FieldSet1").form.id; document.getElementById("Sample").innerHTML = "The id of the form in which fieldset element is present is ... Read More

397 Views
The HTML DOM Fieldset disabled property is used for disabling the group of elements that are present inside a given fieldset. If this property is set to true then the elements are disabled else they are enabled, which is by default as well. Disabled elements are rendered in grey by default by browsers and users can’t click or write in those elements.SyntaxFollowing is the syntax −To set the disabled property −fieldsetObj.disabled = true|falseTo return the disabled property −fieldsetObj.disabledExampleLet us look at an example for the Fieldset disabled property −Live Demo function FieldDisable() { ... Read More

63 Views
The HTML DOM exitFullscreen() method is used for getting an element currently in the full screen mode to get out of that mode. It does nothing if executed on an element that isn’t in the full screen mode already.SyntaxFollowing is the syntax for exitFullscreen() method −HTMLElementObject.exitFullscreen()ExampleLet us look at an example for the exitFullscreen() method − var docEle = document.documentElement; function GoNormal() { if (document.exitFullscreen) document.exitFullscreen(); } function GoFullscreen() { if (docEle.requestFullscreen) docEle.requestFullscreen(); } exitFullscreen() method example ... Read More

7K+ Views
The document's current title can be obtained or changed using the document.title attribute. When present, the value of the is used by default. You can change or get the current title of the document using the document.title attribute. By providing a new title as a string to this attribute, the page's title can be changed. The chosen title will immediately be reflected in the website's title. In this article you will see two types of methods used to change or use Document.title() use in JavaScript Using the document.title property − You may set or get the current title ... Read More