Virajsinh

Remove Domain From URL String in jQuery

Oct 20th, 2021 (edited)
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.08 KB | None | 0 0
  1. //Remove Domain From URL String in jQuery
  2.  
  3. url = url.replace(/^.*\/\/[^\/]+/, '');
Add Comment
Please, Sign In to add comment