Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Remove Domain From URL String in jQuery
Virajsinh
Oct 20th, 2021
(
edited
)
328
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
jQuery
0.08 KB
| None
|
0
0
raw
download
clone
embed
print
report
//Remove Domain From URL String in jQuery
url
=
url.
replace
(
/^.*\/\/[^\/]+/
,
''
)
;
Add Comment
Please,
Sign In
to add comment
Public Pastes
Full test
C | 5 min ago | 6.10 KB
Untitled
Python | 10 min ago | 0.74 KB
Schema markup for collections
JSON | 16 min ago | 1.31 KB
Button test
C | 29 min ago | 5.45 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 45 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 47 min ago | 0.39 KB
*args
Python | 1 hour ago | 0.34 KB
flex-shrink.css
CSS | 1 hour ago | 0.53 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!