tags:

views:

27

answers:

1

Given:

http://something.com:4567/data/21/28/188

How do I get only the following with JavaScript?

http://something.com:4567/
+2  A: 

window.location.protocol+'//'+window.location.host

Daniel Mendel