Hi,
I want to get the url with javascript. But I just need http://www.mysite.com, without any parameters behind it. any idea how to get that?
Hi,
I want to get the url with javascript. But I just need http://www.mysite.com, without any parameters behind it. any idea how to get that?
Use this:
var url = window.location.protocol + "//" + window.location.host;