I have a url like http://abc.xyz.com.
I just want 'http://abc' part, But I am getting 'http://abc.xyz.com'
I tried this:
windw.location.origin
Do I need to write some extra method to get the first part of url or is there something any window method which will do the same?
 
     
     
    