Reputation: 44066
Given:
http://something.com:4567/data/21/28/188
How do I get only the following with JavaScript?
http://something.com:4567/
Upvotes: 0
Views: 444
Reputation: 10003
window.location.protocol+'//'+window.location.host
Upvotes: 3