Found 10483 Articles for Web Development

How to create an array with random values with the help of JavaScript?

Tarun Singh
Updated on 23-Feb-2023 14:02:59

7K+ Views

We can use JavaScript Math.random() method to generate random values. JavaScript provides us with different Array methods, such as from(), fill(), and push(), that can be used to create an array with random values. Arrays in JavaScript are a powerful feature that allows you to store a collection of values of different data types. They are widely used in many applications, and having an array with random values can be very useful in certain scenarios. An array of random values is a collection of randomly generated numbers stored in an array. The values in an array of random values can ... Read More

How to Create an Array using Intersection of two Arrays in JavaScript?

Tarun Singh
Updated on 23-Feb-2023 14:01:10

2K+ Views

The intersection of two arrays in JavaScript can be done in different ways, such as using the Set, spread operator, filter() method, or the includes() method. Each method has its own advantages and disadvantages, and it is important to consider which method works best for the given task. The intersection of two arrays is helpful if you want to create a new array that contains only the elements found in both arrays. Let’s have an example − arr1 = [ 2, 5, 7, 9, 11, 13, 15, 17 ] arr2 = [ 1, 3, 5, 7, 11, 13, 16, 17 ... Read More

How to create an array of partial objects from another array in JavaScript?

Tarun Singh
Updated on 23-Feb-2023 13:58:54

11K+ Views

Arrays are one of the most commonly used data types in JavaScript. They are used to store collections of data and allow for efficient access and manipulation of data. Arrays can contain any type of data, including primitive values, objects, and even other arrays. The technique of creating an array of partial objects from an array is a valuable technique when dealing with complex data sets. Partial objects contain only a subset of the data from the original array, allowing us to focus on a particular set of data. This can be especially useful when dealing with large data sets, ... Read More

How can a page be forced to load another page in JavaScript?

Tarun Singh
Updated on 23-Feb-2023 13:57:25

7K+ Views

In JavaScript, we can use window.location object to force a page to load another page. We can use the location object to set the URL of a new page. There are different ways – window.location.href property, window.location.assign() and window.location.replace() methods, to set the URL of a new page using the location object. We will discuss each of the property and methods in detail in this tutorial. Window.location.replace The first way is to use the window.location.href property. This property contains information about the current URL of the page, and it can be used to redirect the user to a new page. ... Read More

How are the JavaScript window and JavaScript document different from one another?

Tarun Singh
Updated on 24-Jul-2023 10:17:41

420 Views

In JavaScript, the window object represents the current web browser window, while the document object represents the web page that is currently loaded in the window. The window object in JavaScript provides access to the browser's history, location, and other properties and methods that allow us to interact with the browser window itself. It contains information about the browser window, like the size, the document the window contains, and the window’s history. The document object represents the structure of the web page as a whole and provides access to the content of the page, as well as methods for manipulating ... Read More

How to create responsive stacked card hover effect using CSS?

Riya Kumari
Updated on 22-Feb-2023 15:37:05

921 Views

Card-style design is better than others in terms of functionality and aesthetics. To suit the needs of different screen sizes, the card design can assist users focus on specific content very easily, as well as enabling designers to put up the content reasonably and clearly throughout design. The disorganised website is a pain. When we organise various types of elements on the page, the card design can provide a great order for the layout of these contents. This is beneficial to both designers and users. The card design is incredibly versatile and may be used for practically any purpose in ... Read More

How to create Shooting Star Animation effect using CSS?

Riya Kumari
Updated on 22-Feb-2023 18:14:28

2K+ Views

Shooting stars appear to be the gleaming indications of the warmth produced as these small shivers make a blip in the frigid night sky. The Shooting Star effect is one of the most unique background effects for dark-themed websites. Shooting Stars Animation is a fantastic example of a loading screen that keeps your attention for a long time while the rest of the material on the website loads. This effect can be utilised in page loaders and user interfaces. In this article, we will discuss about the method to create Shooting Star Animation effect using CSS. For this, we will ... Read More

How to eliminate close button from jQuery UI dialog box using CSS?

Riya Kumari
Updated on 22-Feb-2023 15:35:31

2K+ Views

Displaying data in a sorted manner within a HTML web page is a cumbersome task. The dialog boxes are used to display information in a presentable manner in a web page. A dialog box is a floatable window which contains a header and the content. jQuery UI enables the developers to create simple and user-friendly dialog boxes for the website. In this article, we will discuss about how to create jQuery UI dialog boxes as well as how to eliminate the close button from those boxes. First, let’s understand about jQuery UI dialog boxes. jQuery UI Dialog Box The ... Read More

How to eliminate blue borders around linked images using CSS?

Riya Kumari
Updated on 22-Feb-2023 15:34:03

554 Views

A website with no visuals is boring, and even if it has a good design, most of us would probably prefer one with many graphics. Why is this the case? Images are a quick and easy way to enhance user experience on your website. 90% of the information we perceive and send to our brains is visual information. You may use images to attract attention and refocus your visitors' attention. They may be really helpful when it comes to communicating important information. Images are a fantastic emotional trigger that you can use to entice visitors and keep them reading your ... Read More

How to create Pay Roll Management Webpage using JavaScript?

Riya Kumari
Updated on 22-Feb-2023 15:23:58

2K+ Views

Nowadays, there are many companies and small-scale businesses rising and booming in the world. There are so many people working in these industries or firms. It has become a crucial task for the employer to manage the payment records of his employee. Thus, arises the need of proper payroll management system in every big or small firm. It is almost impossible for the employer to manually maintain the pay roll record of each and every employee in big firms. So, they need digital pay roll management system. In this article, we will discuss about how to create a pay ... Read More

Advertisements