Source Freeze

  • Home
  • iOS
  • Swift
  • Cross-Platform
  • About
  • Contact
Home » javascript » Page 4

How to detect browser back and forward button clicks in Javascript?

October 5, 2023 by Source Freeze Leave a Comment

Generally, we navigate to different pages of a website by clicking the provided buttons on the web page. But, sometimes there is no back button provided on the web pages. In that case, we use the browser back and forward buttons to navigate through the different pages of the website. In this tutorial, we are going to learn about the different ways … [Continue reading...]

Filed Under: javascript

Parse Float with 2 decimals in javascript

January 12, 2023 by Source Freeze Leave a Comment

In this tutorial, we will more about how to parse the float with 2 decimals in JavaScript. Parse Float with 2 Decimals in JavaScript To parse float with 2 decimal places: let us see parse float with 2 decimals by example. First, assign a value that holds the floating point number which we want to parse. Then use … [Continue reading...]

Filed Under: javascript Tagged With: javascript

How to redirect to another page in next js

January 8, 2023 by Source Freeze Leave a Comment

In this tutorial, we will see how to redirect to another page in next js, there are three ways to redirect one page to another page in nextjs. Let's see each option in a detailed way. Using Link Component in Next.JS Using Link component in nextjs it is like a href tag you can just use the href attribute and mention the redirect URL, … [Continue reading...]

Filed Under: javascript, NextJS Tagged With: javascript, nextjs

How to get the query parameters from URL in Next JS?

January 5, 2023 by Source Freeze Leave a Comment

In nextjs we can easily get the query params with the use of useRouter() that we can import from 'next/router' then assign userRouter() to the router variable after that using router.query we can get the exact query string values. if you are passing multiple queries also we can get the values from router.query. ☞ Check out Next.js & … [Continue reading...]

Filed Under: javascript, NextJS Tagged With: javascript, nextjs

How to convert array to space separated strings in javascript

August 13, 2022 by Source Freeze Leave a Comment

To convert array to space separated strings in javascript we can use the join() method of an array, by passing the string with space as a parameter. the Array.join() method returned the strings with spaces as an output. ☞ Check out The Complete JavaScript Course 2023: From Zero to Expert! (Buy now, the offer ends in a few … [Continue reading...]

Filed Under: javascript Tagged With: javascript

How to convert array to comma separated strings in javascript

August 11, 2022 by Source Freeze Leave a Comment

To Convert array to comma separated strings in Javascript first need to pass the array to the String object like String(arr), then the String(arr) will return the comma separated strings as an output. ☞ Check out The Complete JavaScript Course 2023: From Zero to Expert! (Buy now, the offer ends in a few hours) Please refer to the … [Continue reading...]

Filed Under: javascript Tagged With: javascript

« Previous Page

Recent Posts

  • How to Generate random numbers in JavaScript
  • How to Scroll to an Element in a React Component?
  • How to get a Date without the Time in JavaScript
  • How to modify url without reloading the page using javascript
  • How to disable server side rendering in nextjs
  • How to get a file type from URL in JavaScript

Recent Posts

  • How to Generate random numbers in JavaScript
  • How to Scroll to an Element in a React Component?
  • How to get a Date without the Time in JavaScript
  • How to modify url without reloading the page using javascript
  • How to disable server side rendering in nextjs
  • How to get a file type from URL in JavaScript

Recent Comments

    Tags

    beginner colon cross-platform es6 function html ionic iOS javascript mobile application development nextjs objective-c swift switch ternary typescript uiwebview Visual Studio plugin web developer

    Copyright © 2025 Source Freeze