Front End Scripts Articles

Page 6 of 47

Do any browsers yet support HTML5's checkValidity() method?

Nitya Raut
Nitya Raut
Updated on 15-Mar-2026 229 Views

Yes, modern browsers widely support HTML5's checkValidity() method. This method validates form elements against their HTML5 constraints and returns true if valid, false otherwise. Browser Support The checkValidity() method is supported in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. It's been widely supported since around 2012-2013. Syntax element.checkValidity() Return Value Returns true if the element meets all validation constraints, false otherwise. Example .valid { ...

Read More

How to return which part of a positioned element is visible in JavaScript?

Prabhdeep Singh
Prabhdeep Singh
Updated on 15-Mar-2026 284 Views

This tutorial teaches us how to return which part of a positioned element is visible in JavaScript. A positioned element is an HTML element with CSS positioning (absolute, relative, fixed, etc.). To make only a defined part visible, we use the CSS clip property to hide unwanted areas. The clip property defines a rectangular clipping region that determines which portion of an absolutely positioned element should be visible. Syntax Here's the basic syntax for clipping an element and retrieving the clip value: document.getElementById("elementId").style.clip = "rect(top right bottom left)"; let clipValue = document.getElementById("elementId").style.clip; The ...

Read More

HTML5+CSS3 Framework like BluePrint/960gs?

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

When looking for HTML5+CSS3 frameworks similar to Blueprint or 960gs, you have several modern alternatives that provide responsive grid systems and enhanced styling capabilities. Available Framework Options Here are two notable frameworks that extend beyond traditional grid systems: 52framework Susy 52framework The 52framework (Official Site) is a comprehensive HTML5+CSS3 framework that provides: CSS3 gradients, multiple shadows, and other advanced visual properties CSS3 selectors with Internet Explorer compatibility Enhanced HTML5 video support ...

Read More

How to set or return the number of columns an element should be divided into with JavaScript?

Arushi
Arushi
Updated on 15-Mar-2026 220 Views

In JavaScript, the columnCount property allows you to divide an element's content into multiple columns. This CSS property can be set and retrieved using JavaScript's style object. Syntax // Set column count element.style.columnCount = "number"; // Get column count let count = element.style.columnCount; Parameters The columnCount property accepts: number - The number of columns (e.g., "2", "3", "4") "auto" - Browser determines column count automatically "initial" - Sets to default value Example: Setting Column Count Click the button to divide the text into 4 columns: ...

Read More

cache.manifest works for the first time then fails in HTML

Smita Kapse
Smita Kapse
Updated on 15-Mar-2026 123 Views

HTML5 Application Cache (cache.manifest) can fail after the first load due to caching issues. Here are solutions to ensure proper cache updates. Add NETWORK Section Add the NETWORK section at the bottom of your manifest file to allow network access for unlisted resources: CACHE MANIFEST CACHE: /css/style.css /js/myscript.js /images/logo.png NETWORK: * Version Your Manifest File Include a version parameter in the manifest attribute to force cache updates when content changes: My App Cached Application ...

Read More

Set whether or not an element should be visible while not facing the screen with JavaScript?

Monica Mona
Monica Mona
Updated on 15-Mar-2026 263 Views

Use the JavaScript backfaceVisibility property to control whether an element should be visible when its back face is turned toward the viewer. This property is particularly useful with CSS 3D transforms and animations. Syntax element.style.backfaceVisibility = "visible|hidden|inherit|initial"; Property Values Value Description visible Default. Back face is visible when turned away from user hidden Back face is hidden when turned away from user inherit Inherits value from parent element Example: Interactive Backface Visibility Toggle The following example demonstrates how to toggle the backfaceVisibility ...

Read More

HTML5 tag on Android for PhoneGap application

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

PhoneGap is a software development framework by Adobe System, which is used to develop mobile applications. PhoneGap produces apps for all popular mobile OS platforms such as iOS, Android, BlackBerry, and Windows Mobile OS etc. HTML5 Audio support is not consistent across different devices due to codec licensing issues and OS implementation. For playing MP3 files, this can be handled by using PhoneGap's Media class that provides reliable audio programming across all platforms. Using PhoneGap Media Class The Media class provides audio recording and playback functionality. Here's how to implement basic audio playback: // Create ...

Read More

How to set outline color with JavaScript?

Sai Subramanyam
Sai Subramanyam
Updated on 15-Mar-2026 582 Views

To set outline color in JavaScript, use the outlineColor property. The outline appears outside an element's border and doesn't affect the element's dimensions or layout. Syntax element.style.outlineColor = "color"; Parameters The outlineColor property accepts any valid CSS color value: Color names: "red", "blue", "green" Hex values: "#FF5733", "#000000" RGB values: "rgb(255, 87, 51)" HSL values: "hsl(9, 100%, 60%)" Example: Setting Outline Color #box { ...

Read More

HTML5 appcache with Safari causing cross-site css to not load correctly

Anvi Jain
Anvi Jain
Updated on 15-Mar-2026 224 Views

HTML5 AppCache was designed to enable offline web applications by caching specific resources. However, Safari's strict implementation can cause cross-site CSS files to fail loading when not properly configured in the cache manifest. The Safari AppCache Issue Safari follows the AppCache standard more strictly than other browsers. When a cache manifest is present, Safari blocks any network requests to resources not explicitly listed in the manifest file, including cross-site CSS files. Understanding the Problem When you have a cache manifest like this: CACHE MANIFEST # Version 1.0 CACHE: /styles/main.css /scripts/app.js /index.html ...

Read More

How to set all outline properties in a single declaration with JavaScript?

Paul Richard
Paul Richard
Updated on 15-Mar-2026 192 Views

To set all outline properties in one declaration, use the outline property. It sets the following properties: outline-width, outline-style, and outline-color. Syntax element.style.outline = "width style color"; Parameters The outline property accepts three values in any order: width - thickness (thin, medium, thick, or length value like 2px) style - line style (solid, dashed, dotted, double, groove, ridge, inset, outset) color - outline color (color name, hex, rgb, rgba) Example You can try to run the following code to learn ...

Read More
Showing 51–60 of 465 articles
« Prev 1 4 5 6 7 8 47 Next »
Advertisements