Answers for "javascript empty current url"

5

empty link javascript

<a href="javascript:void(0)">Link title</a>
<!--Quick copy paste : href="javascript:void(0)" -->
Posted by: Guest on July-17-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 empty current url"

Browse Popular Code Answers by Language