s-melnikov
3/10/2016 - 7:52 AM

hostname.js

function hostname(u) {
  var a = document.createElement('a');
    a.href = u;
  return a.hostname;
}