Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js how to remove # from any url using js

//if the url is = https://example.com/#exampleid
var url = document.URL.split('#')[0]
//=> https://example.com/
//redirect it
location = url
 
PREVIOUS NEXT
Tagged: #js #remove #url #js
ADD COMMENT
Topic
Name
7+5 =