Answers for "reset url javascript"

3

js change url

window.location.href = "www.google.com";
Posted by: Guest on May-07-2020
0

clean url javascript

let int = 0
let cleanupUrl = ""
let url = 'github.com/gin-gonic/gin'
int = url.match(/[/]/g).length

if(int === 2) {
 cleanupUrl = url.replace(/.*[/]/g, '')
}

console.log(cleanupUrl)
Posted by: Guest on June-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language