Server Side Programming Articles

Page 871 of 2109

How to use Python Regular expression to extract URL from an HTML link?

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 16-Mar-2026 3K+ Views

In this article, we will learn how to extract URLs from HTML links using Python regular expressions. A URL (Uniform Resource Locator) identifies the location of a resource on the Internet, consisting of components like protocol, domain name, path, and port number. Python's re module provides powerful regular expression capabilities for parsing and extracting URLs from HTML content. Regular expressions allow us to define search patterns that can identify and extract specific URL formats from text. Regular Expressions in Python A regular expression is a search pattern used to find matching strings in text. Python's re module ...

Read More

How to create a Responsive Admin Dashboard using HTML CSS & JavaScript ?

Rohan Singh
Rohan Singh
Updated on 15-Mar-2026 10K+ Views

An admin dashboard provides important data insights and controls for managing various aspects of an application or website. In this article, we will explore the process of creating a responsive admin dashboard using the three pillars of web development: HTML, CSS, and JavaScript. Prerequisites To follow this article, you should have a basic understanding of HTML, CSS, and JavaScript. Familiarity with concepts like responsive design, CSS Flexbox, and CSS Grid will also be helpful. Step 1: Setting Up the HTML Structure We'll start by setting up the basic HTML structure for our admin dashboard. Create a ...

Read More

How to Check a String Starts/Ends with a Specific String in jQuery?

Ayushya Saxena
Ayushya Saxena
Updated on 15-Mar-2026 979 Views

JavaScript provides several built-in methods to check if a string starts or ends with specific characters. While jQuery is excellent for DOM manipulation, these string operations are handled by native JavaScript methods that work efficiently without any additional library. In this article, we'll explore various approaches to verify if a string begins or ends with another string using practical examples. Using startsWith() Method The startsWith() method is the most direct way to check if a string begins with specific characters. It's case-sensitive and returns a boolean value. Syntax str.startsWith(searchString, position) Parameters ...

Read More

How to use JavaScript to check if a number has a decimal place or it's a whole number?

Abhishek
Abhishek
Updated on 15-Mar-2026 26K+ Views

In JavaScript, determining whether a number is a whole number or has decimal places is a common requirement. This tutorial explores three effective methods to accomplish this task using both built-in JavaScript methods and custom functions. The following methods are available to check if a number is decimal or whole: Using the Math.floor() Method Using the Number.isInteger() Method Using a Custom isDecimal() Function Using Math.floor() Method The Math.floor() method returns the largest integer less than or equal to a given number. By comparing the original number with its ...

Read More

How to submit an HTML form using JavaScript?

Abhishek
Abhishek
Updated on 15-Mar-2026 18K+ Views

In this tutorial, we will learn how to submit an HTML form using JavaScript. JavaScript provides multiple approaches to handle form submission, from direct programmatic submission to validation-based submission with user feedback. We will discuss two main methods for submitting HTML forms: Using the Form submit() Method Using Manual Validation Let us explore both methods with practical examples. Using the Form submit() Method The submit() method programmatically submits a form without requiring user interaction with the submit button. This method takes no parameters and returns no value—it ...

Read More

How to style background image to no repeat with JavaScript DOM?

Abhishek
Abhishek
Updated on 15-Mar-2026 3K+ Views

In this tutorial, we will learn to style the background image to no repeat with JavaScript DOM. To style the background image to no repeat with JavaScript, use the backgroundRepeat property. It allows you to set whether the background image repeats or not on a page. The use of images in the background really makes the page attractive. But before using the image in the background, one must completely understand the properties used to set the images as the background. Otherwise, it will create problems like not showing the full image in the background, repeating the image horizontally or ...

Read More

Difference between Hibernate and Eclipse link

Himanshu shriv
Himanshu shriv
Updated on 15-Mar-2026 2K+ Views

Hibernate and EclipseLink are both Object-Relational Mapping (ORM) frameworks that implement the Java Persistence API (JPA) specification. While they serve the same fundamental purpose of mapping Java objects to relational databases, they have distinct differences in implementation and features. What is Hibernate? Hibernate is the most popular JPA implementation, developed by Red Hat. It provides robust ORM capabilities and includes additional features beyond the standard JPA specification. Hibernate has been widely adopted in enterprise applications due to its maturity and extensive documentation. What is EclipseLink? EclipseLink is an open-source JPA implementation developed by the Eclipse Foundation. ...

Read More

How to stop form submission using JavaScript?

Abhishek
Abhishek
Updated on 15-Mar-2026 63K+ Views

In this tutorial, we will see the methods to stop form submission using JavaScript. Generally, the HTML form by default submits automatically when certain events are triggered. The automatic submission causes the browser to refresh and reload the whole page, which we don't want in some cases. To perform any operation before submission, we need to change the default behavior of the form to prevent it from submitting. Following are the methods we can use to stop form submission: Using the "return false" value Using the preventDefault() method Let ...

Read More

How to subtract days from a date in JavaScript?

Abhishek
Abhishek
Updated on 15-Mar-2026 37K+ Views

In JavaScript, you can subtract days from a date using built-in Date methods. The most common approaches are using setTime() with getTime() for millisecond-based calculation, or setDate() with getDate() for simpler day-based arithmetic. Following are the methods we can use to subtract days from a date in JavaScript: Using the setTime() and getTime() methods Using the setDate() and getDate() methods Using setTime() and getTime() Methods The setTime() method sets a date by milliseconds since ...

Read More

How to compare Python DateTime with Javascript DateTime?

Rajendra Dharmkar
Rajendra Dharmkar
Updated on 15-Mar-2026 958 Views

Both Python and JavaScript have unique ways of representing date and time data. To compare Python datetime objects with JavaScript Date objects, we must ensure that both are converted to a common format, such as ISO 8601 strings or Unix timestamps (milliseconds since epoch). The following are two major differences between Python datetime and JavaScript Date objects: Month Representation: JavaScript uses a 0-indexed month (0 for January, 11 for December), while Python uses a 1-indexed month (1 for January, 12 for December). Default Time Zone: Python defaults to UTC, ...

Read More
Showing 8701–8710 of 21,090 articles
« Prev 1 869 870 871 872 873 2109 Next »
Advertisements