HTML DOM Input Radio autofocus property

AmitDiwan
Updated on 16-Mar-2026 21:38:54

361 Views

The HTML DOM Input Radio autofocus property is associated with the HTML element's autofocus attribute. This property sets or returns whether a radio button should automatically receive focus when the page loads. Syntax Following is the syntax for setting the autofocus property − radioObject.autofocus = true|false Following is the syntax for getting the autofocus property − var focusState = radioObject.autofocus; Parameters The autofocus property accepts boolean values − true − The radio button will automatically get focus when the page loads. false − The radio button ... Read More

How do I create an HTML button that acts like a link?

AmitDiwan
Updated on 16-Mar-2026 21:38:54

4K+ Views

Creating an HTML button that behaves like a link allows developers to combine the visual appeal of buttons with the navigation functionality of links. This technique is useful when you want a more prominent, clickable element that stands out better than traditional text links. There are three main approaches to create HTML button links − Using the tag − Wrapping a button inside an anchor element Using the tag − Creating a form with a submit button that navigates to a URL Using JavaScript onclick event − Adding click handlers to buttons for programmatic navigation ... Read More

HTML DOM Input URL form Property

AmitDiwan
Updated on 16-Mar-2026 21:38:54

182 Views

The HTML DOM Input URL form property returns a reference to the form element that contains the input URL field. This property is read-only and provides access to the parent form object, allowing you to retrieve form properties like id, name, or action. Syntax Following is the syntax for accessing the form property − inputURLObject.form Return Value The property returns a reference to the HTMLFormElement object that contains the input URL field. If the input is not inside a form, it returns null. Example Following example demonstrates the Input URL form ... Read More

HTML DOM Input Radio defaultChecked Property

AmitDiwan
Updated on 16-Mar-2026 21:38:54

202 Views

The HTML DOM Input Radio defaultChecked property determines whether a radio button was checked by default when the page first loaded. It returns true if the radio button has the checked attribute in the HTML markup, otherwise it returns false. This property reflects the initial state, not the current checked state. Syntax Following is the syntax for the Radio defaultChecked property − radioObject.defaultChecked Return Value The defaultChecked property returns a Boolean value − true − If the radio button has the checked attribute in HTML false − If the radio button ... Read More

How to design mobile touch slider using Swiper.js Plugin?

Aayush Mohan Sinha
Updated on 16-Mar-2026 21:38:54

710 Views

The Swiper.js plugin is a powerful JavaScript library for creating mobile-friendly touch sliders with smooth animations and intuitive navigation. It provides extensive customization options, making it ideal for building responsive image carousels, content sliders, and interactive galleries that work seamlessly across all devices. Syntax Following is the basic HTML structure for implementing Swiper.js − Slide content Slide content Following is the JavaScript initialization syntax − const swiper = new Swiper('.swiper', ... Read More

HTML DOM console.table() Method

AmitDiwan
Updated on 16-Mar-2026 21:38:54

323 Views

The HTML DOM console.table() method displays data in a well-organized tabular format in the browser's console. This method is particularly useful for visualizing complex arrays, objects, or arrays of objects in a readable table structure where each element becomes a row. Syntax Following is the syntax for the console.table() method − console.table(tableData, tableColumns); Parameters The console.table() method accepts the following parameters − tableData − A required parameter representing the data to display in the table. It can be an array, object, or array of objects. tableColumns − An ... Read More

HTML DOM Input Radio form Property

AmitDiwan
Updated on 16-Mar-2026 21:38:54

208 Views

The HTML DOM Input Radio form property returns a reference to the form element that contains the given radio button. If the radio button is not inside a form, this property returns null. This is a read-only property that helps identify which form controls a specific radio button. Syntax Following is the syntax for the input radio form property − radioObject.form Return Value The form property returns − Form object − A reference to the form element that contains the radio button null − If the radio button is not inside ... Read More

HTML DOM Video playbackRate Property

AmitDiwan
Updated on 16-Mar-2026 21:38:54

257 Views

The HTML DOM Video playbackRate property controls the speed at which a video plays. It returns a number representing the current playback speed, where 1.0 is normal speed, values greater than 1.0 increase speed, and values less than 1.0 decrease speed. Syntax Following is the syntax to get the current playback rate − mediaObject.playbackRate Following is the syntax to set a new playback rate − mediaObject.playbackRate = number Parameters number − A numeric value representing the playback speed. Common values include: 0.5 = Half speed (slow motion) ... Read More

How elements float in HTML?

AmitDiwan
Updated on 16-Mar-2026 21:38:54

455 Views

The float property in CSS allows elements to be positioned to the left or right side of their container, causing other content to wrap around the floated element. This property is commonly used for creating layouts where text flows around images or for positioning elements side by side. Syntax Following is the syntax for the CSS float property − selector { float: left | right | none | inherit; } The float property accepts the following values − left − The element floats to the left of its container ... Read More

HTML DOM Input URL name Property

AmitDiwan
Updated on 16-Mar-2026 21:38:54

166 Views

The HTML DOM Input URL name property gets or sets the value of the name attribute of an HTML input element with type="url". This property is essential for identifying form data when submitted to the server and for accessing the element via JavaScript. Syntax Following is the syntax for returning the name value − inputURLObject.name Following is the syntax for setting the name to a new value − inputURLObject.name = 'string' Return Value The property returns a string representing the value of the name attribute of the input URL ... Read More

Advertisements