Front End Scripts Articles

Page 19 of 47

Storing Credentials in Local Storage

Rishi Rathor
Rishi Rathor
Updated on 15-Mar-2026 1K+ Views

Local Storage is designed for data that spans multiple windows and persists beyond the current session. Web applications can store megabytes of user data on the client side for performance reasons. However, storing credentials requires special security considerations. For secure credential storage, never store actual passwords or sensitive authentication data directly in local storage. Instead, use a token-based approach that minimizes security risks. Secure Token-Based Authentication On successful login, generate a completely random token string unrelated to user credentials. Store this token in your database with an expiry date, then pass it to JavaScript for local storage. ...

Read More

How to display HTML5 client-side validation error bubbles?

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 414 Views

HTML5 provides built-in client-side validation with error bubbles that appear when users try to submit invalid form data. The required attribute and input types like email automatically trigger these validation messages. Basic Required Field Validation The required attribute prevents form submission if the field is empty and displays a validation bubble: HTML5 Validation Enter Email: ...

Read More

How not to validate HTML5 input with required attribute

Jennifer Nicholas
Jennifer Nicholas
Updated on 15-Mar-2026 268 Views

To avoid validation on specific form elements in HTML5, use the formnovalidate attribute on submit buttons or the novalidate attribute on the form itself. This allows you to bypass HTML5's built-in validation for required fields when needed. Using formnovalidate Attribute The formnovalidate attribute can be added to submit buttons to skip validation for that specific submission: HTML formnovalidate attribute Rank: ...

Read More

Set a dotted line for the border with CSS

Samual Sam
Samual Sam
Updated on 15-Mar-2026 2K+ Views

To set a dotted line for the border in CSS, use the border-style property with the value dotted. This creates a border made up of small dots around the element. Syntax border-style: dotted; Example Here's how to create a dotted border using CSS: .dotted-border { border-width: 3px; ...

Read More

CSS content: attr() on HTML5 progress doesn't work

George John
George John
Updated on 15-Mar-2026 299 Views

The CSS content: attr() function doesn't work directly with HTML5 elements due to browser rendering limitations. Here's how to work around this issue. The Problem When you try to use content: attr() with progress elements, it fails because progress bars use special internal pseudo-elements that don't support generated content in the same way as regular elements. HTML Structure .progress-container { position: relative; ...

Read More

How to best display HTML5 geolocation accuracy on a Google Map?

Rishi Rathor
Rishi Rathor
Updated on 15-Mar-2026 496 Views

To display HTML5 geolocation accuracy on a Google Map, you need to combine the Geolocation API with Google Maps to show both the user's position and the accuracy radius as a circle. Basic Setup First, get the user's location using the HTML5 Geolocation API and extract the accuracy information: Geolocation Accuracy on Map function initMap() { ...

Read More

What HTML5 File.slice method actually doing?

Ankith Reddy
Ankith Reddy
Updated on 15-Mar-2026 313 Views

The HTML5 Blob.slice() method creates a new Blob object containing a subset of data from the source Blob. It's particularly useful for processing large files in chunks or extracting specific portions of binary data. Syntax blob.slice(start, end, contentType) Parameters The slice() method accepts three optional parameters: start - Starting byte position (default: 0) end - Ending byte position (default: blob.size) contentType - MIME type for the new blob (default: empty string) Basic Example // Create a blob with text content var originalBlob = new ...

Read More

Usage of border-right-color property in CSS

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 74 Views

The border-right-color property sets the color of an element's right border. It works independently of other border properties and allows you to customize just the right border color while leaving other borders unchanged. Syntax border-right-color: color | transparent | inherit; Values color - Any valid CSS color (hex, RGB, HSL, color names) transparent - Makes the border transparent inherit - Inherits the color from parent element Example: Basic Usage .demo { ...

Read More

How to draw a 3D sphere in HTML5?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 886 Views

To create a 3D sphere in HTML5, you need to use the canvas element along with mathematical calculations to plot points in 3D space and project them onto a 2D canvas. This involves creating vertices using spherical coordinates and rendering them as a wireframe or solid sphere. Basic Sphere Class Structure First, let's create a Point3D class and a sphere display function: 3D Sphere // Point3D class to represent ...

Read More

HTML5 video not working with jquery bxSlider plugin on iPad

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 262 Views

When using HTML5 video with the bxSlider jQuery plugin on iPad, video playback often fails due to iOS-specific requirements and plugin compatibility issues. This guide shows how to properly configure bxSlider to work with HTML5 videos on iPad. Setup Requirements First, download the bxSlider plugin from the official website. Extract the downloaded zip file and locate the images folder. Copy this images folder into your project's js directory. Required Files Structure Include the following files in your project with proper linking: HTML Structure for Video Slider Structure ...

Read More
Showing 181–190 of 465 articles
« Prev 1 17 18 19 20 21 47 Next »
Advertisements