Looking for a way to extract only the 'http://abc'
part from a URL like http://abc.xyz.com
, unfortunately getting the full 'http://abc.xyz.com'
.
I attempted using:
windw.location.origin
Do I need to implement an additional method to achieve this extraction, or is there perhaps another window
method that can accomplish the same?