Hello,
Consider variable like
var url='http://www.example.com/index.php?id=ss';
or
var url='http://www.example.com/dir1/dir2/index.php';
In these variables, i want to get only the domain part i.e http://www.example.com
, stripping out other texts. Is this possible in ordinary javascript or jquery ?
Please help