Found 6685 Articles for Javascript

How to Delete Bookmarks in your Browser (Firefox, Chrome)

Rahul Sharma
Updated on 15-Jun-2020 08:51:40

202 Views

Bookmarks in a web browser are saved so that it can be referred. It is also known as favorite web pages. To Bookmark a web page, visit the page and press Ctrl+D. This will give you an option to save the web page.In this way, all the bookmarks get saved like this on pressing Ctrl+D. The star sign as you can see below also allows you to add a bookmark −Bookmark on FirefoxBookmark on ChromeLet’s learn how to delete a bookmark in a web browser. To delete a bookmark, which you bookmarked before in Firefox or Chrome, you need to ... Read More

How to format hexadecimal Number in JavaScript?

Giri Raju
Updated on 17-Jun-2020 06:35:28

988 Views

Firstly convert your number to hexadecimal with leading zeros and then format it by adding dashes.ExampleYou can try to run the following code to format hexadecimal number −Live Demo                    var num = 32122;          var myHex = ("000000000000000" + num.toString(16)).substr(-16);          var resHex = myHex.substr(0, 8)+'-'+myHex.substr(8,4)+'-'+myHex.substr(12,4);          document.write(resHex);           Output00000000-0000-7d7a

How to change Firefox Browser theme?

Johar Ali
Updated on 15-Jun-2020 08:44:18

177 Views

Firefox web browser is widely used and loved by many users around the world. Well, you can easily change the Firefox Browser theme and make it look more awesome.Let’s see how to reach the Firefox theme section and change the theme −Open Firefox MenuGo to the following section and click to open the Firefox browser menu. After that, you need to click Add-ons:AppearanceTo reach the Themes section, click on Add-ons and then click on Appearance as shown below −On clicking Appearance, the themes will be visible. Click Enable to enable any theme or choose from thousands of other themes as ... Read More

How to format a rounded number to N decimals using JavaScript?

Anvi Jain
Updated on 17-Jun-2020 06:45:36

344 Views

Use the toFixed() method to format a rounded number to N decimals. The toFixed() method formats a number with a specific number of digits to the right of the decimal.ExampleYou can try to run the following code to form a rounded number to N decimals −Live Demo           JavaScript toFixed() Method                        var num = 15;          document.write("num.toFixed() is : " + num.toFixed());          document.write("");          document.write("num.toFixed() is : " + num.toFixed(2));          document.write("");          document.write("num.toFixed() is : " + num.toFixed(1));          document.write("");           Outputnum.toFixed() is : 15 num.toFixed() is : 15.00 num.toFixed() is : 15.0

How to refresh a page in Firefox?

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

262 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

19K+ 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

116 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

233 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

218 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

467 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

Advertisements