Found 6710 Articles for Javascript

How to refresh a page in Firefox?

Amit Sharma
Updated on 16-Jun-2020 08:03:10

556 Views

To refresh a page in a web browser like Firefox means reloading the page. It’s quite easy to refresh a page. Follow the below given steps −Open web pageOpen the web page, which you want to refresh.Find Refresh buttonThe refresh button is located on the top right corner of the Firefox web browser. Yes, the circular arrow. Just click on it reload as shown below −Click on the arrow to reload the website. Through this, you can easily reload any web page.

How to remove leading zeros from a number in JavaScript?

Prabhdeep Singh
Updated on 07-Nov-2022 05:56:16

20K+ Views

In this tutorial, we will explore how we can remove leading zeroes from any number in JavaScript. JavaScript removes leading zeroes from an integer variable automatically, but this is not the case when we consider strings in JavaScript. It is possible that a string in JavaScript which represents a numerical value may contain leading zeroes. These leading zeroes may cause problems when we try to perform any operation on the numerical value the string represents. This is why we will explore the ways by which we can remove the leading zeroes from a number, expressed as a string in JavaScript. ... Read More

How to design a modern Website?

Ali
Ali
Updated on 15-Jun-2020 08:43:09

205 Views

Modern websites are responsive and the design works fine on multiple devices such as Desktop, Tablet, and Mobile. Also, websites these days do not follow the old font styles, many of them use Google fonts since it’s easy to find a font-face matching your website's content and Google provides a lot of free fonts to choose from.Modern websites display beautifully formatted content on multiple devices such phones, tablets, and desktops. Also, nowadays Retina-ready logo helps in keeping your logo amazing, no matter the resolution.Follow the below given steps and learn how to design a modern website −Design StylesFor design style, ... Read More

How to create Favicon for your website?

Rahul Sharma
Updated on 10-Jan-2020 06:38:41

334 Views

A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with a smaller size. Here, you can see the favicon, The size of a favicon is 16x16 since it also gets displayed next to the URL of your site in a browser's address bar. It is visible on a users list of bookmarks and easily helps in recognizing the website from a list of websites.To add a favicon icon, you need to create an icon, with size 16x16. Also, some websites provide options to create favicon icon from ... Read More

How to block a website in your web browsers (Chrome and Internet Explorer)

Johar Ali
Updated on 15-Jun-2020 08:39:06

339 Views

To block a website on any of the web browsers like Google Chrome, Firefox, and Internet Explorer in a Windows system is quite easy. Follow the below-given steps to block a website −Open Notepad as an administrator i.e. Run as Administrator.Now, after opening Notepad, click on File, then click Open and move to the following path −C:\Windows\System32\drivers\etcThe following files will be visible. Click hosts and open it in Notepad −The notepad file will consist of some text. Reach the last line and press enter. Here, add the following to block any website and click Save to save the Notepad. We’re ... Read More

How to create a modal popup using JavaScript and CSS?

Nishtha Thakur
Updated on 16-Jun-2020 13:05:24

586 Views

Creating a modal popup means adding a dialog box, which generates on click of a button and close when user clicks anywhere outside of the popup.Here’s how a popup looks like below with header and a text. You can also add a footer to it −To create a modal popup using CSS and JavaScript, try to run the following code −ExampleLive Demo                    .popup {             display: none;             position: fixed;             z-index: 1;   ... Read More

How to compare two numbers in JavaScript?

Shubham Vora
Updated on 08-Aug-2022 09:02:40

18K+ Views

In this tutorial, we will learn to compare two numbers in JavaScript. If you are a competitive coder or application developer, in these cases, you need to make a comparison between two numbers and need to perform the particular operation basis on the comparison result of the numbers. Still, many programmers think we can compare the number only using the equality operator. Still, we can also compare the numbers using the less than or greater than operators. We will see the use of all three operators to compare the number in this tutorial. Using the Strict Equality Operator (===) In ... Read More

How to convert a String containing Scientific Notation to correct JavaScript number format?

Jennifer Nicholas
Updated on 17-Jun-2020 06:44:36

1K+ Views

To convert a string with Scientific Notation, use the Number function. Pass the value to this function.ExampleYou can try to run the following code to convert a string to correct number format −Live Demo                    document.write("String with Scientific Notation converted below:");          document.write(Number("7.53245683E7"));           OutputString with Scientific Notation converted below: 75324568.3

How to get the length of a Number in JavaScript?

Vrundesha Joshi
Updated on 17-Jun-2020 06:34:53

19K+ Views

Use the toString() method to covert the Number to string, then the length() method gives you length.ExampleYou can try to run the following code to learn how to get the length of a Number −Live Demo                    var num1 = 344;          var num2 = 149856;          document.write("Length of number "+num1+" = "+ num1.toString().length);          document.write("Length of number "+num2+" = "+ num2.toString().length);           OutputLength of number 344 = 3 Length of number 149856 = 6

How to make a Website step by step?

Ali
Ali
Updated on 15-Jun-2020 08:33:11

856 Views

A website is a group of a web page, which has content, images, videos, header, etc. It is with a unique domain name and published on the web server.DomainA domain is what you type on the web browser to open a website. For example www.tutorialspoint.com, etc. The domain is uniquely defined for a website. Buy a domain name from domain name registrar and website hosting companies like GoDaddy.Here, you can see the domain name typed on the web browser:Hosting PackageThe website which you’re looking to develop will have content, images, documents, etc. For all these, you need space, which is ... Read More

Advertisements