Code:
javascript:
var a="https://www.name.com/domain/search/";
var b=prompt("What domain would you like to lookup?\nPlease do not include http:// or https://", "example.com");
if (b==="")
{
alert("invalid response");
}
else if (b===" ")
{
alert("invalid response");
}
else if (b!=null)
{
open(a+b);
}
Bookmarklet:
javascript:var a="https://www.name.com/domain/search/";var b=prompt("What domain would you like to lookup?\nPlease do not include http:// or https://", "example.com");if (b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null){open(a+b);}