Front End Technology Articles

Page 347 of 652

How to differentiate between Manual and Automated Animation in JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 664 Views

Generally, animation in JavaScript is done to get different effects and make the object move around the page. You can move and animate any type of HTML element using manual or automated animations in JavaScript. In this tutorial, we will learn how to differentiate between manual and automated animation in JavaScript. Manual Animation Manual animation requires user interaction to trigger movement or changes. The animation process is not automated and depends on events like button clicks or mouse actions. The following implementation demonstrates a simple manual animation using DOM object properties and JavaScript functions: ...

Read More

How to list down all the plug-in installed in your browser?

Nitya Raut
Nitya Raut
Updated on 15-Mar-2026 1K+ Views

To list down all the plug-ins installed in the web browser, use the JavaScript navigator object. The JavaScript navigator object includes a child object called plugins. This object is an array, with one entry for each plug-in installed on the browser. Understanding navigator.plugins The navigator.plugins property returns a PluginArray object containing Plugin objects representing the plugins installed in the browser. Each plugin object has properties like name, filename, and description. Example You can try to run the following code to list down all the plug-ins installed in your browser: ...

Read More

What are the three types of errors I can expect in my JavaScript script?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 612 Views

In this tutorial, let us discuss the three types of errors we can expect in our JavaScript code. Errors are statements that block the execution of the program. During the compilation and execution of JavaScript programs, three types of errors can occur: syntax errors, runtime errors, and logical errors. Syntax Errors Syntax errors are the most common errors that occur when the JavaScript engine cannot understand the code due to incorrect syntax. These errors happen during the parsing phase before code execution begins. For example, using a semicolon instead of a colon in an object declaration ...

Read More

Find digits not between the brackets using JavaScript Regular Expressions?

Sravani Alamanda
Sravani Alamanda
Updated on 15-Mar-2026 260 Views

In JavaScript, regular expressions with negated character classes [^0-9] are used to find characters that are NOT digits. The caret ^ inside square brackets creates a negated character class, matching any character except those specified. Regular expressions (RegExp) are powerful pattern-matching tools introduced in ES1 and supported by all modern browsers. They're commonly used for string validation, search operations, and text manipulation. Syntax The syntax for matching non-digits is: new RegExp("[^0-9]") // or simply /[^0-9]/ With modifiers for global matching: new RegExp("[^0-9]", "g") // or simply /[^0-9]/g ...

Read More

Find the non-digit character with JavaScript Regular Expression

Sravani Alamanda
Sravani Alamanda
Updated on 15-Mar-2026 2K+ Views

In this tutorial, we will learn to find non-digit characters using JavaScript regular expressions. The \D metacharacter matches any character that is not a digit (0-9), including letters, spaces, and special characters. RegExp is an object that specifies patterns used for search and replace operations on strings or input validation. RegExp was introduced in ES1 and is fully supported by all browsers. Syntax The syntax for matching non-digit characters is: new RegExp("\D") // Constructor syntax /\D/ // Literal syntax (recommended) ...

Read More

Find a form feed character with JavaScript RegExp.

Sravani Alamanda
Sravani Alamanda
Updated on 15-Mar-2026 1K+ Views

Form feed character is a page breaking ASCII control character commonly used for page separators. When you want to insert a page break, text editors can use this form feed. It is defined as \f and has an ASCII code value of 12 or 0x0c. RegExp is an object that specifies the pattern used to perform search and replace operations on strings or for input validation. RegExp was introduced in ES1 and is fully supported by all browsers. Now, we will check how to find the form feed (\f) character in given text using RegExp. Syntax ...

Read More

For the Hosts Locale how to convert a string to uppercase letters in JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 405 Views

In this tutorial, we will learn how to convert a string to uppercase letters for the host's locale in JavaScript. While using a locale language to write for a website, we might have to convert the sentence from lowercase to uppercase without changing the structure of the string. Using the toLocaleUpperCase() Method In JavaScript, we use the toUpperCase() method as well as the toLocaleUpperCase() to change the letters of a string to uppercase. Although both methods give similar output, the toLocaleUpperCase() is used primarily for local languages and handles locale-specific character mappings correctly. Syntax We ...

Read More

How to load the next URL in the history list in JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 867 Views

In this tutorial, we will learn to load the next page in the history list in JavaScript. The Window object in JavaScript accesses the window in the browser. This object contains many properties and methods required to do the tasks. The Window object also retrieves the information from the browser window. There is a history stack in every browser that saves the pages visited by the user. To access this history stack, we can use the history object that is the property of the Window object. By accessing the history from the browser, we can go to the ...

Read More

How to load the previous URL in the history list in JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 7K+ Views

In this tutorial, we will learn to load the previous page in the history list in JavaScript. The Window object in JavaScript accesses the window in the browser. This object contains many properties and methods required to do the tasks. The Window object also retrieves the information from the browser window. There is a history stack in every browser that saves the pages visited by the user. To access this history stack, we can use the history object that is the property of the Window object. By accessing the history from the browser, we can go to the ...

Read More

How to get the number of forms in a document with JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 1K+ Views

In this tutorial, we will learn how to get the number of forms in a document using JavaScript. Since different methods are used to create forms in an HTML document, it might get tricky to get the number of forms present. However, you can use some methods to count the forms created without the form tag. Using the length Property The most widely accepted method to create forms in HTML documents is using the tag. Some websites also use tags to create forms in the document. Hence, we will discuss the method to get the number ...

Read More
Showing 3461–3470 of 6,519 articles
« Prev 1 345 346 347 348 349 652 Next »
Advertisements